UNPKG

iframe-channel

Version:

A channel used to communicate between iframe and parent. Support post function.

19 lines (14 loc) 406 B
import chai from 'chai' import sinonChai from 'sinon-chai' chai.use(sinonChai) global.TEST_UTILS = { chai, assert: chai.assert, expect: chai.expect, should: chai.should(), sinon } const testsContext = require.context('./', true, /\.spec\.jsx?$/) testsContext.keys().forEach(testsContext) const srcContext = require.context('../../src/', true, /\.jsx?$/) srcContext.keys().forEach(srcContext)