diff --git a/test/spec/valid-expect.spec.ts b/test/spec/valid-expect.spec.ts index 3546484..8d13873 100644 --- a/test/spec/valid-expect.spec.ts +++ b/test/spec/valid-expect.spec.ts @@ -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: [ @@ -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()',