Skip to content

Commit f0c9394

Browse files
fregantesindresorhus
authored andcommitted
Add another test for prefer-t-regex (#334)
1 parent 608340a commit f0c9394

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/prefer-t-regex.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ ruleTester.run('prefer-t-regex', rule, {
3434
header + 'test(t => t.regex(foo, RegExp(/\\d+/)));',
3535
// Shouldn't be triggered since it's not a test file
3636
'test(t => t.true(/\\d+/.test("foo")));',
37+
// Not valid, but it shouldn't cause errors
38+
'test(t => t.true());',
3739
],
3840
invalid: [
3941
{

0 commit comments

Comments
 (0)