Skip to content

Instantly share code, notes, and snippets.

@moriya-hm5
Created January 17, 2020 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moriya-hm5/f0c789f4713bc9f6427ff78608794e7d to your computer and use it in GitHub Desktop.
Save moriya-hm5/f0c789f4713bc9f6427ff78608794e7d to your computer and use it in GitHub Desktop.
const sinon = require('sinon') // sinon作成
const sandbox = require('sinon').createSandbox() //sandbox作成
afterEach(()=>{
sandbox.restore()// sandboxをリストアすること
})
after(()=>{
sinon.restore() // sinonをリストアすること
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment