Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
bjankord committed May 4, 2024
1 parent 0c9e5ef commit 4c6a128
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion __tests__/nesting-depth.test.mjs
Expand Up @@ -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)',
],
);
});
Expand Down
2 changes: 1 addition & 1 deletion __tests__/selector-depth.test.mjs
Expand Up @@ -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)'
],
);
});
Expand Down
5 changes: 3 additions & 2 deletions __tests__/valid-scss.test.mjs
Expand Up @@ -265,8 +265,8 @@ $spaceaftervariblename: #f00;
// SpaceAroundOperator test
.spacearoundoperator {
margin: 5px + 5px;
padding: 5px + 5px;
margin: 5px + 10px;
padding: 5px + 10px;
}
// SpaceBeforeBrace test
Expand Down Expand Up @@ -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);
});

Expand Down

0 comments on commit 4c6a128

Please sign in to comment.