Skip to content

Commit

Permalink
Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-we committed Feb 3, 2024
1 parent b787a64 commit 8fda920
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/at-rule.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 8fda920

Please sign in to comment.