Skip to content

Commit

Permalink
chore: Add test for expect regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mskelton committed Jul 4, 2023
1 parent ec35829 commit f3cfc99
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/spec/valid-expect.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ runRuleTester('valid-expect', rule, {
{ column: 1, endColumn: 12, line: 1, messageId: 'matcherNotFound' },
],
},
{
code: 'softExpect(foo)',
errors: [
{ column: 1, endColumn: 16, line: 1, messageId: 'matcherNotFound' },
],
},
{
code: 'expect(foo).not',
errors: [
Expand Down Expand Up @@ -210,7 +216,9 @@ runRuleTester('valid-expect', rule, {
},
],
valid: [
'expectPayButtonToBeEnabled()',
'expect("something").toBe("else")',
'softExpect("something").toBe("else")',
'expect.soft("something").toBe("else")',
'expect.poll(() => "something").toBe("else")',
'expect(true).toBeDefined()',
Expand Down

0 comments on commit f3cfc99

Please sign in to comment.