Home
last modified time | relevance | path

Searched refs:afterReturn (Results 1 – 8 of 8) sorted by relevance

/test/testfwk/arkxtest/jsunit/src/module/mock/
DExtendInterface.js30 afterReturn(value) { method in ExtendInterface
/test/testfwk/arkxtest/hamock/src/main/mock/
DExtendInterface.js26 afterReturn(value) { method in ExtendInterface
DExtendInterface.ts36 afterReturn(value: any) { method in ExtendInterface
/test/testfwk/arkxtest/hamock/
Dindex.d.ts27 afterReturn(value: any): any
/test/testfwk/arkxtest/
DREADME_zh.md303 | 3 | afterReturn(x:value) | 设定预期返回一个自定义的值value,比如某个字符串或者一个promise。 |
333 **示例1:afterReturn 的使用**
364 when(mockfunc)('test').afterReturn('1');
377 `when(mockfunc)('test').afterReturn('1');`
379 `afterReturn('1')`是用户需要预期返回的结果。
465 when(mockfunc)(ArgumentMatchers.any).afterReturn('1');
514 when(mockfunc)(ArgumentMatchers.anyString).afterReturn('1');
560 when(mockfunc)(ArgumentMatchers.anyString).afterReturn('1');
661 when(func_1)(ArgumentMatchers.anyNumber).afterReturn('4');
662 when(func_2)(ArgumentMatchers.anyNumber).afterReturn('5');
[all …]
DREADME_en.md141 | 3 | afterReturn(x: value)| Sets an expected return value, for example, a string or promise.|
170 Example 1: Use **afterReturn**.
201 when(mockfunc)('test').afterReturn('1');
214 …)('test').afterReturn('1');`, `('test')` is the value to pass in the mocked function. Currently, o…
299 when(mockfunc)(ArgumentMatchers.any).afterReturn('1');
348 when(mockfunc)(ArgumentMatchers.anyString).afterReturn('1');
394 when(mockfunc)(ArgumentMatchers.matchRegexs(/123456/)).afterReturn('1');
494 when(func_1)(ArgumentMatchers.anyNumber).afterReturn('4');
495 when(func_2)(ArgumentMatchers.anyNumber).afterReturn('5');
546 when(func_1)(ArgumentMatchers.anyNumber).afterReturn('4');
[all …]
/test/testfwk/arkxtest/jsunit/
Dindex.d.ts105 afterReturn(value: any): any method
Dindex.ets98 afterReturn: (value: allExpectType) => allExpectType