Skip to content

Commit a5d5540

Browse files
committed
test: add test for #104
1 parent 18c1156 commit a5d5540

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

test/fixtures/numeric.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ module.exports = {
4343
'0.5rad',
4444
'.5deg',
4545
'0.5deg',
46-
'72.3deg'
46+
'72.3deg',
47+
'1.5dppx'
4748
],
4849
throws: ['+-2.', '.', '.rem', '.2.3rem']
4950
};

test/snapshots/numeric.test.js.md

+39
Original file line numberDiff line numberDiff line change
@@ -1613,3 +1613,42 @@ Generated by [AVA](https://ava.li).
16131613
value: '72.3',
16141614
},
16151615
]
1616+
1617+
## 1.5dppx
1618+
1619+
> Snapshot 1
1620+
1621+
'1.5dppx'
1622+
1623+
> Snapshot 2
1624+
1625+
'1.5dppx'
1626+
1627+
> Snapshot 3
1628+
1629+
[
1630+
Numeric {
1631+
raws: {
1632+
after: '',
1633+
before: '',
1634+
},
1635+
source: {
1636+
end: {
1637+
column: 1,
1638+
line: 1,
1639+
},
1640+
input: Input {
1641+
css: '1.5dppx',
1642+
hasBOM: false,
1643+
id: '<input css 35>',
1644+
},
1645+
start: {
1646+
column: 1,
1647+
line: 1,
1648+
},
1649+
},
1650+
type: 'numeric',
1651+
unit: 'dppx',
1652+
value: '1.5',
1653+
},
1654+
]

test/snapshots/numeric.test.js.snap

69 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)