Skip to content

Commit 794aaf3

Browse files
committed
feat(tests): more tests for comments
1 parent a2c42ed commit 794aaf3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

testing/fixtures.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export const comment = [
2+
// Test with comments
23
{
34
css: "/* body { color: black; } */",
45
ast: {
@@ -11,4 +12,23 @@ export const comment = [
1112
},
1213
},
1314
},
15+
// Test with no comments
16+
{
17+
css: "body { color: black; }",
18+
ast: {
19+
type: "stylesheet",
20+
stylesheet: {
21+
rules: [{
22+
type: "rule",
23+
selectors: ["body"],
24+
declarations: [
25+
{
26+
name: "color",
27+
type: "property",
28+
},
29+
],
30+
}],
31+
},
32+
},
33+
},
1434
];

0 commit comments

Comments
 (0)