mirror of
https://github.com/hanzoai/postcss.git
synced 2026-09-24 17:01:56 +00:00
Add unit test
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user