Skip to content

Commit 28898d1

Browse files
committed
test: added test case showing empty waitFor
1 parent f2f6dcc commit 28898d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/lib/rules/prefer-find-by.test.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ ruleTester.run(RULE_NAME, rule, {
5151
code: `
5252
await waitFor(() => expect(${queryMethod}('baz')).toBeInTheDocument());
5353
`
54-
}))
54+
})),
55+
{
56+
code: `await waitFor()`
57+
}
5558
],
5659
invalid: [
5760
// using reduce + concat 'cause flatMap is not available in node10.x

0 commit comments

Comments
 (0)