Skip to content

Commit

Permalink
Updated tests, added the use of new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulyanov-programmer committed Oct 17, 2024
1 parent a921dd3 commit 5e4865c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -609,12 +609,20 @@ test("Save the parent's comment", () => {
})

test('Save the comment for the parent and child', () => {
run('a { /*i*/ /*o*/b {} }', 'a { /*i*/ } /*o*/ a b {}')
run(
`a {
/*i*/
/*o*/
b {} }`,

`a { /*i*/ } /*o*/ a b {}`
)
})

test('moves comments with at-rule', () => {
run(
'a { /*i*/ /*o*/@media { one: 1 } }',
`a { /*i*/ /*o*/
@media { one: 1 } }`,
'a { /*i*/ } /*o*/ @media {a { one: 1 } }'
)
})
Expand Down

0 comments on commit 5e4865c

Please sign in to comment.