Skip to content

Commit 424419a

Browse files
committed
Add test case for functions
1 parent 21613b2 commit 424419a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ ruleTester.run('no-only-tests', rules['no-only-tests'], {
2424
options: [{focus: ['focus']}],
2525
code: 'test.only("Options will exclude this from being caught", function() {});',
2626
},
27+
{
28+
options: [{functions: ['fit', 'xit']}],
29+
code: 'it("Options will exclude this from being caught", function() {});',
30+
},
2731
],
2832

2933
invalid: [
@@ -194,6 +198,11 @@ ruleTester.run('no-only-tests', rules['no-only-tests'], {
194198
output: 'Then("Some assertion", function() {});',
195199
errors: [{message: 'Then.only not permitted'}],
196200
},
201+
{
202+
options: [{functions: ['fit', 'xit']}],
203+
code: 'xit("No skipped tests", function() {});',
204+
errors: [{message: 'xit not permitted'}],
205+
},
197206
],
198207
});
199208

0 commit comments

Comments
 (0)