Skip to content

Commit

Permalink
added tests for custom toBeWithinTolerance matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Nov 8, 2015
1 parent b1cadb5 commit a89b1c2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/specs/matchHeight.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@ describe('matchHeight', function() {
});

it('has matched heights when byRow true', function(done) {
// test custom toBeWithinTolerance matcher
expect(-1.0001).not.toBeWithinTolerance(0);
expect(-1).toBeWithinTolerance(0);
expect(-0.1).toBeWithinTolerance(0);
expect(0).toBeWithinTolerance(0);
expect(0.1).toBeWithinTolerance(0);
expect(1).toBeWithinTolerance(0);
expect(1.0001).not.toBeWithinTolerance(0);

$('.simple-items, .image-items, .nested-items-parent, .nested-items,' +
'.fixed-items, .inline-block-items, .inline-flex-items')
.each(function() {
Expand Down

0 comments on commit a89b1c2

Please sign in to comment.