chronograf/ui/spec/spec-helper.js

14 lines
235 B
JavaScript
Raw Normal View History

window.then = function(cb, done) {
window.setTimeout(function() {
2017-03-30 22:29:43 +00:00
cb()
if (typeof done === 'function') {
2017-03-30 22:29:43 +00:00
done()
}
2017-03-30 22:29:43 +00:00
}, 0)
}
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