From 4a642081717fc12edd1f521a573aa81c7bcbfa66 Mon Sep 17 00:00:00 2001 From: liabru Date: Sun, 15 Nov 2015 00:02:39 +0000 Subject: [PATCH] add test for _parse on string values with units --- test/specs/matchHeight.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/specs/matchHeight.spec.js b/test/specs/matchHeight.spec.js index bbd2f94..79a7714 100644 --- a/test/specs/matchHeight.spec.js +++ b/test/specs/matchHeight.spec.js @@ -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(); });