Skip to content

Commit c2c774c

Browse files
test: add snapshot for the parsed output of a single declaration
1 parent 8708031 commit c2c774c

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

test/__snapshots__/index.spec.js.snap

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,24 @@ Array [
104104
},
105105
]
106106
`;
107+
108+
exports[`parses single declaration correctly 1`] = `
109+
Array [
110+
Object {
111+
"position": Position {
112+
"end": Object {
113+
"column": 26,
114+
"line": 1,
115+
},
116+
"source": undefined,
117+
"start": Object {
118+
"column": 1,
119+
"line": 1,
120+
},
121+
},
122+
"property": "background-color",
123+
"type": "declaration",
124+
"value": "#C0FFEE",
125+
},
126+
]
127+
`;

test/data.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ const snapshots = [
5151
'text-align/**/ /*:*/ : /*:*//**/ center'
5252
],
5353

54+
['parses single declaration correctly', 'background-color: #C0FFEE;'],
55+
5456
[
5557
'parses multiple declarations correctly',
5658
`

0 commit comments

Comments
 (0)