Searched refs:afterReturnNothing (Results 1 – 8 of 8) sorted by relevance
36 afterReturnNothing() { method in ExtendInterface
31 afterReturnNothing() { method in ExtendInterface
42 afterReturnNothing() { method in ExtendInterface
28 afterReturnNothing(): undefined
106 afterReturnNothing(): undefined method
99 afterReturnNothing: () => undefined
304 | 4 | afterReturnNothing() | 设定预期没有返回值,即 undefined。 |382 **示例2: afterReturnNothing 的使用**414 //4.根据自己需求进行选择 执行完毕后的动作,比如这里选择afterReturnNothing();即不返回任何值415 when(mockfunc)('test').afterReturnNothing();419 // 这时候执行的claser.method_1不会再返回'888888',而是设定的afterReturnNothing()生效//不返回任何值;762 //4.根据自己需求进行选择 执行完毕后的动作,比如这里选择afterReturnNothing();即不返回任何值
142 | 4 | afterReturnNothing() | Sets the expected return value to **undefined**, that is, no value wil…216 Example 2: Use **afterReturnNothing**.248 …on to be performed when the test case ends. For example, set it to afterReturnNothing(), which ret…249 when(mockfunc)('test').afterReturnNothing();253 …// The mocked claser.method_1 does not return '888888'. Instead, afterReturnNothing() takes effect…592 …on to be performed when the test case ends. For example, set it to afterReturnNothing(), which ret…