UNPKG

eventric-testing

Version:
22 lines (16 loc) 420 B
require('es6-promise').polyfill() if typeof window isnt 'undefined' root = window else root = global if !root._spec_setup root.sinon = require 'sinon' root.mockery = require 'mockery' 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 -> sandbox.restore()