1 | var sinon = require('sinon')
|
2 | var chai = require('chai')
|
3 |
|
4 | // publish globals that all specs can use
|
5 | global.expect = chai.expect
|
6 | global.should = chai.should()
|
7 | global.sinon = sinon
|
8 |
|
9 | // chai plugins
|
10 | chai.use(require('chai-fs'))
|
11 | chai.use(require('sinon-chai'))
|
12 |
|
13 | beforeEach(function () {
|
14 | global.sinon = sinon.sandbox.create()
|
15 | })
|
16 |
|
17 | afterEach(function () {
|
18 | global.sinon.restore()
|
19 | })
|