Add unit test

This commit is contained in:
Tim Weißenfels
2024-02-03 14:28:18 +01:00
parent 799f3d99fe
commit 02463efe99
+6
View File
@@ -48,4 +48,10 @@ test('clone spaces from another at-rule', () => {
is(rule.toString(), '@page 1{}')
})
test('at-rule without body has no nodes property', () => {
let root = parse('@layer a, b, c;');
let layer = root.first as AtRule
type(layer.nodes, 'undefined')
});
test.run()