Skip to content

Commit

Permalink
Use chai matchers for nicer failure messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Feb 8, 2015
1 parent bb250de commit af58cf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ describe('Promise', function () {
});

it('does not have extra methods (bad Chrome!)', function () {
expect(hasOwn.call(Promise, 'accept')).to.equal(false);
expect(hasOwn.call(Promise, 'defer')).to.equal(false);
expect(hasOwn.call(Promise.prototype, 'accept')).to.equal(false);
expect(Promise).not.to.have.property('accept');
expect(Promise).not.to.have.property('defer');
expect(Promise.prototype).not.to.have.property('chain');
});
});

0 comments on commit af58cf8

Please sign in to comment.