When you use spies, stubs or mocks, wrap your test function in sinon.test . This allows you to use Sinon's automatic clean-up functionality.
確定! 回上一頁