How to use the verifyAndRestore function from sinon
Find comprehensive JavaScript sinon.verifyAndRestore code examples handpicked from public code repositorys.
8 9 10 11 12 13 14
global.expect = chai.expect global.sinon = sinon global.request = chai.request afterEach(() => { sinon.verifyAndRestore() })
0
2
2
+ 3 other calls in file
GitHub: eslint/eslint
4222 4223 4224 4225 4226 4227 4228 4229 4230 4231
}); }); describe("outputFixes()", () => { afterEach(() => { sinon.verifyAndRestore(); }); it("should call fs.writeFile() for each result with output", async () => { const fakeFS = {
0
0
318
sinon.stub is the most popular function in sinon (5777 examples)