From 4c6a12885d38252fa557ee4f1af1c463f2fc44f0 Mon Sep 17 00:00:00 2001 From: Brett Date: Sat, 4 May 2024 06:06:31 -0500 Subject: [PATCH] Update test --- __tests__/nesting-depth.test.mjs | 2 +- __tests__/selector-depth.test.mjs | 2 +- __tests__/valid-scss.test.mjs | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/__tests__/nesting-depth.test.mjs b/__tests__/nesting-depth.test.mjs index 12592ef..7157c38 100644 --- a/__tests__/nesting-depth.test.mjs +++ b/__tests__/nesting-depth.test.mjs @@ -51,7 +51,7 @@ describe('flags warnings with nesting depth', () => { [ 'Expected nesting depth to be no more than 1 (max-nesting-depth)', 'Expected nesting depth to be no more than 1 (max-nesting-depth)', - 'Expected ".one .two .three .four" to have no more than 3 compound selectors (selector-max-compound-selectors)', + 'Expected ".four" to have no more than 3 compound selectors (selector-max-compound-selectors)', ], ); }); diff --git a/__tests__/selector-depth.test.mjs b/__tests__/selector-depth.test.mjs index bcc819c..1f7d5a3 100644 --- a/__tests__/selector-depth.test.mjs +++ b/__tests__/selector-depth.test.mjs @@ -40,7 +40,7 @@ describe('flags warnings with selector depth', () => { result.results[0].warnings.map((w) => w.text), [ 'Expected ".one .two .three > .four" to have no more than 3 compound selectors (selector-max-compound-selectors)', - 'Expected ".one .two .three > .four" to have no more than 3 compound selectors (selector-max-compound-selectors)' + 'Expected ".three > .four" to have no more than 3 compound selectors (selector-max-compound-selectors)' ], ); }); diff --git a/__tests__/valid-scss.test.mjs b/__tests__/valid-scss.test.mjs index cb89724..b84967c 100644 --- a/__tests__/valid-scss.test.mjs +++ b/__tests__/valid-scss.test.mjs @@ -265,8 +265,8 @@ $spaceaftervariblename: #f00; // SpaceAroundOperator test .spacearoundoperator { - margin: 5px + 5px; - padding: 5px + 5px; + margin: 5px + 10px; + padding: 5px + 10px; } // SpaceBeforeBrace test @@ -346,6 +346,7 @@ $spaceaftervariblename: #f00; }); it('did not error', () => { + // console.log('result.results[0].warnings', result.results[0].warnings); assert.equal(result.errored, false); });