Skip to content

Commit

Permalink
add test for _parse on string values with units
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Nov 15, 2015
1 parent 6cf52f0 commit 4a64208
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/specs/matchHeight.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ describe('matchHeight', function() {
expect(_parse(1.1)).toBe(1.1);
expect(_parse('1')).toBe(1);
expect(_parse('1.1')).toBe(1.1);
expect(_parse('1px')).toBe(1);
expect(_parse('1.1px')).toBe(1.1);
expect(_parse(NaN)).toBe(0);
done();
});
Expand Down

0 comments on commit 4a64208

Please sign in to comment.