Skip to content

Commit f3cfc99

Browse files
committed
chore: Add test for expect regex
1 parent ec35829 commit f3cfc99

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/spec/valid-expect.spec.ts

+8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ runRuleTester('valid-expect', rule, {
1010
{ column: 1, endColumn: 12, line: 1, messageId: 'matcherNotFound' },
1111
],
1212
},
13+
{
14+
code: 'softExpect(foo)',
15+
errors: [
16+
{ column: 1, endColumn: 16, line: 1, messageId: 'matcherNotFound' },
17+
],
18+
},
1319
{
1420
code: 'expect(foo).not',
1521
errors: [
@@ -210,7 +216,9 @@ runRuleTester('valid-expect', rule, {
210216
},
211217
],
212218
valid: [
219+
'expectPayButtonToBeEnabled()',
213220
'expect("something").toBe("else")',
221+
'softExpect("something").toBe("else")',
214222
'expect.soft("something").toBe("else")',
215223
'expect.poll(() => "something").toBe("else")',
216224
'expect(true).toBeDefined()',

0 commit comments

Comments
 (0)