Skip to content

Commit

Permalink
Assert that valid fixtures contain no disables (#221)
Browse files Browse the repository at this point in the history
Valid fixtures should contain only valid code. Adding an inline
disable should never be allowed.
  • Loading branch information
edg2s authored Jul 28, 2023
1 parent 6930eff commit e36ac54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ QUnit.module( 'package.json', () => {
fs.readFileSync( file ).toString()
).join( '' );

QUnit.test( `Valid ${ext} fixtures contain no disables`, ( assert ) => {
assert.false( validFixtures.includes( 'stylelint-disable' ), `No disables found in valid ${ext} fixtures` );
} );

QUnit.test( `Rules are covered in ${ext}`, ( assert ) => {
const done = assert.async();

Expand Down

0 comments on commit e36ac54

Please sign in to comment.