From 5e4865c802f5993e6f10bc09ad35fc6ff5a5d0ab Mon Sep 17 00:00:00 2001 From: Ulyanov-programmer Date: Thu, 17 Oct 2024 19:57:14 +0400 Subject: [PATCH] Updated tests, added the use of new lines --- index.test.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/index.test.js b/index.test.js index 067452a..fffcd10 100644 --- a/index.test.js +++ b/index.test.js @@ -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 } }' ) })