Skip to content
reergymerej edited this page Sep 6, 2014 · 1 revision

eventually

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);
    });
});

not

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);
Clone this wiki locally