UNPKG

eventric-testing

Version:
24 lines (19 loc) 445 B
var root, sinonChai; require('es6-promise').polyfill(); if (typeof window !== 'undefined') { root = window; } else { root = global; } if (!root._spec_setup) { root.sinon = require('sinon'); root.chai = require('chai'); root.expect = chai.expect; root.sandbox = sinon.sandbox.create(); sinonChai = require('sinon-chai'); chai.use(sinonChai); root._spec_setup = true; } afterEach(function() { return sandbox.restore(); });