2016-09-15 21:53:29 +00:00
|
|
|
window.then = function(cb, done) {
|
|
|
|
window.setTimeout(function() {
|
2017-03-30 22:29:43 +00:00
|
|
|
cb()
|
2016-09-15 21:53:29 +00:00
|
|
|
if (typeof done === 'function') {
|
2017-03-30 22:29:43 +00:00
|
|
|
done()
|
2016-09-15 21:53:29 +00:00
|
|
|
}
|
2017-03-30 22:29:43 +00:00
|
|
|
}, 0)
|
|
|
|
}
|
2016-09-15 21:53:29 +00:00
|
|
|
|
2017-03-30 22:29:43 +00:00
|
|
|
const chai = require('chai')
|
|
|
|
chai.use(require('sinon-chai'))
|
2016-09-16 22:32:26 +00:00
|
|
|
|
2017-03-30 22:29:43 +00:00
|
|
|
global.expect = chai.expect
|