Skip to content

Commit

Permalink
fix unexpected trailing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
Luka Prebil Grintal committed Jul 28, 2020
1 parent eb19eb6 commit b82ee43
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions test/rules/no-skipped-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,84 +26,84 @@ ruleTester.run('no-skipped-tests', rules['no-skipped-tests'], {
invalid: [
{
code: 'describe.skip()',
errors: [ { message: expectedErrorMessage, column: 10, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 10, line: 1 } ]
},
{
code: 'describe["skip"]()',
errors: [ { message: expectedErrorMessage, column: 10, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 10, line: 1 } ]
},
{
code: 'xdescribe()',
errors: [ { message: expectedErrorMessage, column: 1, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 1, line: 1 } ]
},
{
code: 'it.skip()',
errors: [ { message: expectedErrorMessage, column: 4, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 4, line: 1 } ]
},
{
code: 'it["skip"]()',
errors: [ { message: expectedErrorMessage, column: 4, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 4, line: 1 } ]
},
{
code: 'xit()',
errors: [ { message: expectedErrorMessage, column: 1, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 1, line: 1 } ]
},
{
code: 'suite.skip()',
errors: [ { message: expectedErrorMessage, column: 7, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 7, line: 1 } ]
},
{
code: 'suite["skip"]()',
errors: [ { message: expectedErrorMessage, column: 7, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 7, line: 1 } ]
},
{
code: 'test.skip()',
errors: [ { message: expectedErrorMessage, column: 6, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 6, line: 1 } ]
},
{
code: 'test["skip"]()',
errors: [ { message: expectedErrorMessage, column: 6, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 6, line: 1 } ]
},
{
code: 'context.skip()',
errors: [ { message: expectedErrorMessage, column: 9, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 9, line: 1 } ]
},
{
code: 'context["skip"]()',
errors: [ { message: expectedErrorMessage, column: 9, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 9, line: 1 } ]
},
{
code: 'xcontext()',
errors: [ { message: expectedErrorMessage, column: 1, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 1, line: 1 } ]
},
{
code: 'specify.skip()',
errors: [ { message: expectedErrorMessage, column: 9, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 9, line: 1 } ]
},
{
code: 'xspecify()',
errors: [ { message: expectedErrorMessage, column: 1, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 1, line: 1 } ]
},
{
code: 'custom.skip()',
settings: {
'mocha/additionalTestFunctions': [ 'custom' ]
},
errors: [ { message: expectedErrorMessage, column: 8, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 8, line: 1 } ]
},
{
code: 'custom["skip"]()',
settings: {
'mocha/additionalTestFunctions': [ 'custom' ]
},
errors: [ { message: expectedErrorMessage, column: 8, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 8, line: 1 } ]
},
{
code: 'xcustom()',
settings: {
'mocha/additionalXFunctions': [ 'xcustom' ]
},
errors: [ { message: expectedErrorMessage, column: 1, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 1, line: 1 } ]
},
{
code: 'custom.skip()',
Expand All @@ -112,7 +112,7 @@ ruleTester.run('no-skipped-tests', rules['no-skipped-tests'], {
additionalTestFunctions: [ 'custom' ]
}
},
errors: [ { message: expectedErrorMessage, column: 8, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 8, line: 1 } ]
},
{
code: 'custom["skip"]()',
Expand All @@ -121,7 +121,7 @@ ruleTester.run('no-skipped-tests', rules['no-skipped-tests'], {
additionalTestFunctions: [ 'custom' ]
}
},
errors: [ { message: expectedErrorMessage, column: 8, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 8, line: 1 } ]
},
{
code: 'xcustom()',
Expand All @@ -130,7 +130,7 @@ ruleTester.run('no-skipped-tests', rules['no-skipped-tests'], {
additionalXFunctions: [ 'xcustom' ]
}
},
errors: [ { message: expectedErrorMessage, column: 1, line: 1 } ],
errors: [ { message: expectedErrorMessage, column: 1, line: 1 } ]
}

]
Expand Down

0 comments on commit b82ee43

Please sign in to comment.