arunoda / laika

testing framework for meteor
http://arunoda.github.io/laika/
MIT License
242 stars 38 forks source link

Allow calling done(err) #122

Closed apendua closed 9 years ago

apendua commented 10 years ago

This is a must-have-feature if we want to be able to use promises in tests. Currently, the following test is passing, which is of course an incorrect behavior:

it('Should be able to assert within a promise code.', function (done) {
  Promise.resolve()
    .then(function () {
      expect(true).to.be.false;
    })
    .then(done, done);
});
apendua commented 9 years ago

Closing this one in favor of #145