From 69ac157c66d6e09e6c3bc2af676dd77641e2cf5d Mon Sep 17 00:00:00 2001 From: Ulyanov-programmer Date: Thu, 17 Oct 2024 20:03:16 +0400 Subject: [PATCH] The readability of the test has been improved. --- index.test.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/index.test.js b/index.test.js index fffcd10..583b019 100644 --- a/index.test.js +++ b/index.test.js @@ -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*/ @@ -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 } }` ) })