Skip to content

Commit

Permalink
chore(trying to fix expect): expect-expect (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
veritem authored Dec 17, 2023
1 parent ec2952c commit 0249131
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/expect-expect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ ruleTester.run(RULE_NAME, rule, {
code: 'test("shows success", () => {expectValue(true).toBe(false);});',
options: [{ customExpressions: ['expectValue'] }]
},
{
code: `test("shows success", () => {
expect(true);
expect.assertions(1);
});`,
options: [{ customExpressions: ['expect','expect.*'] }]
},
{
code: `test("shows success", () => {
mySecondExpression(true).toBe(true);});`,
Expand Down

0 comments on commit 0249131

Please sign in to comment.