Skip to content

Commit

Permalink
improve tests for comments (#63)
Browse files Browse the repository at this point in the history
refs #26
  • Loading branch information
bartveneman authored Jun 2, 2024
1 parent 4343305 commit b00f163
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/comments.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,18 @@ test('in @supports prelude', () => {
assert.is(actual, expected)
})

test.skip('in @import prelude', () => {
test.skip('in @import prelude before specifier', () => {
let actual = format('@import /*test*/"foo"/*test*/;')
let expected = '@import /*test*/"foo"/*test*/;'
assert.is(actual, expected)
})

test('in @import prelude after specifier', () => {
let actual = format('@import "foo"/*test*/;')
let expected = '@import "foo"/*test*/;'
assert.is(actual, expected)
})

test.skip('in selector combinator', () => {
let actual = format(`
a/*test*/ /*test*/b,
Expand All @@ -63,9 +69,9 @@ test('in attribute selector', () => {
})

test.skip('in var() with fallback', () => {
let actual = format(`a { prop: var( /* 1 */ --name /* 2 */ , /* 3 */ ) }`)
let actual = format(`a { prop: var( /* 1 */ --name /* 2 */ , /* 3 */ 1 /* 4 */ ) }`)
let expected = `a {
prop: var(/* 1 */ --name /* 2 */, /* 3 */ );
prop: var(/* 1 */ --name /* 2 */, /* 3 */ 1 /* 4 */);
}`
assert.is(actual, expected)
})
Expand Down

0 comments on commit b00f163

Please sign in to comment.