Skip to content

Commit

Permalink
Support the default modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberborn committed Sep 18, 2021
1 parent 98f7613 commit 64cc8c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions rules/no-unknown-modifiers.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const modifiers = new Set([
'always',
'before',
'beforeEach',
'default',
'only',
'serial',
'skip',
Expand Down
11 changes: 2 additions & 9 deletions test/no-unknown-modifiers.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ ruleTester.run('no-unknown-modifiers', rule, {
`${header}test.afterEach(t => {});`,
`${header}test.before(t => {});`,
`${header}test.beforeEach(t => {});`,
`${header}test.default(t => {});`,
`${header}test.default.serial(t => {});`,
`${header}test.only(t => {});`,
`${header}test.serial(t => {});`,
`${header}test.skip(t => {});`,
Expand Down Expand Up @@ -83,15 +85,6 @@ ruleTester.run('no-unknown-modifiers', rule, {
column: 6
}]
},
{
code: `${header}test.default(t => {});`,
errors: [{
message: 'Unknown test modifier `.default`.',
type: 'Identifier',
line: 2,
column: 6
}]
},
{
code: `${header}test.test(t => {});`,
errors: [{
Expand Down

0 comments on commit 64cc8c6

Please sign in to comment.