Skip to content

Commit 8fda920

Browse files
committed
Add unit test
1 parent b787a64 commit 8fda920

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/at-rule.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,10 @@ test('clone spaces from another at-rule', () => {
4848
is(rule.toString(), '@page 1{}')
4949
})
5050

51+
test('at-rule without body has no nodes property', () => {
52+
let root = parse('@layer a, b, c;');
53+
let layer = root.first as AtRule
54+
type(layer.nodes, 'undefined')
55+
});
56+
5157
test.run()

0 commit comments

Comments
 (0)