We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cebdc05 commit 7aa9030Copy full SHA for 7aa9030
__tests__/parseValueAndUnit.test.js
@@ -6,7 +6,7 @@ test('Parse a string to get the value and unit in either pixels or percent', ()
6
expect(parseValueAndUnit('52%'))
7
.toEqual({ unit: '%', value: 52 });
8
expect(parseValueAndUnit(13.333))
9
- .toEqual({ unit: null, value: 13.333 });
+ .toEqual({ unit: '%', value: 13.333 });
10
expect(parseValueAndUnit('75.8%'))
11
.toEqual({ unit: '%', value: 75 });
12
expect(parseValueAndUnit('23.1px'))
0 commit comments