mockReturnValue (123) In your test, you'll configure setInterval to return a value. Then you'll spy on clearInterval, call the finish method, and check that ...
確定! 回上一頁