Searched refs:afterReturn (Results 1 – 8 of 8) sorted by relevance
30 afterReturn(value) { method in ExtendInterface
26 afterReturn(value) { method in ExtendInterface
36 afterReturn(value: any) { method in ExtendInterface
27 afterReturn(value: any): any
303 | 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 …]
141 | 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 …]
105 afterReturn(value: any): any method
98 afterReturn: (value: allExpectType) => allExpectType