Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Sep 5, 2023
1 parent 196458f commit ac5d355
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ const runStylelint = async code => {
test('main', async t => {
const results = await runStylelint(
`div {
left: .2em;
/*nospaces*/
left: 0.2em;
}
`
);

t.true(hasRule(results[0].warnings, 'number-leading-zero'));
t.true(hasRule(results[0].warnings, 'comment-whitespace-inside'));
});

0 comments on commit ac5d355

Please sign in to comment.