Using ember mocha and chai is it possible have two dones
?
Trying to do something like this (doesn’t work)
function doSomething () {
it('somethinng else', function (done) {
var res = false
Ember.run.later(() => {
expect(res).to.be.true
done()
})
})
}
it('somethinng', function () {
doSomething()
})
Only way I can get it to work is to do
function doSomething (done) {
var res = false
Ember.run.later(() => {
expect(res).to.be.true
done()
})
}
it('somethinng', function (done) {
doSomething(done)
})
But I don’t want to necessarily say something
is actually done. What's the proper way to test two async functions in one mocha/chai test
Aucun commentaire:
Enregistrer un commentaire