Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/postcss-8.4.38
Browse files Browse the repository at this point in the history
  • Loading branch information
bjankord authored May 4, 2024
2 parents 54568eb + 4fa33b7 commit 83a0067
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 106 deletions.
2 changes: 1 addition & 1 deletion __tests__/nesting-depth.test.mjs
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading

0 comments on commit 83a0067

Please sign in to comment.