Skip to content

Commit

Permalink
Fix at-rule test
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-we committed Feb 3, 2024
1 parent 8322d11 commit 9dd5a93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/at-rule.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ test('creates nodes property on prepend()', () => {
type(rule.nodes, 'undefined')

rule.prepend('color: black')
is(rule.nodes.length, 1)
is(rule.nodes?.length, 1)
})

test('creates nodes property on append()', () => {
let rule = new AtRule()
type(rule.nodes, 'undefined')

rule.append('color: black')
is(rule.nodes.length, 1)
is(rule.nodes?.length, 1)
})

test('inserts default spaces', () => {
Expand Down

0 comments on commit 9dd5a93

Please sign in to comment.