shb3wa
Last Updated: February 25, 2016
·
2.02K
· cgarvis
51d3be13a400e1ea8cdae57f866e9c11

Easy sandboxing sinon in mocha

describe 'Sample Test', ->
  sandbox = sinon.sandbox.create()

  afterEach ->
    sandbox.restore()

  it 'should stub something', ->
    sandbox.stub(console, 'log')
Say Thanks
Respond