Skip to content

Commit

Permalink
The readability of the test has been improved.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulyanov-programmer committed Oct 17, 2024
1 parent 5e4865c commit 69ac157
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ test("Save the parent's comment", () => {
run('a { /*i*/ b {} }', 'a { /*i*/ } a b {}')
})

test('Save the comment for the parent and child', () => {
test('Save the comments for the parent and child', () => {
run(
`a {
/*i*/
Expand All @@ -619,11 +619,13 @@ test('Save the comment for the parent and child', () => {
)
})

test('moves comments with at-rule', () => {
test('Save the comments for the parent and child with at-rule', () => {
run(
`a { /*i*/ /*o*/
`a { /*i*/
/*o*/
@media { one: 1 } }`,
'a { /*i*/ } /*o*/ @media {a { one: 1 } }'

`a { /*i*/ } /*o*/ @media {a { one: 1 } }`
)
})

Expand Down

0 comments on commit 69ac157

Please sign in to comment.