-
Notifications
You must be signed in to change notification settings - Fork 0
Modifiers
reergymerej edited this page Sep 6, 2014
·
1 revision
checks result of a promise
describe('some test suite', function () {
it('should be less than 2', function () {
var promise = Q.fcall(function () { return 2; });
return will(promise).eventually.beLessThan(2);
});
});
negates the logic of any assertion
// pass
will(true).not.be(false);
will([1, 2]).not.haveOnly(1);
// fail
will('foo').not.be('foo');
will([1]).not.haveOnly(1);