Skip to content

Commit b9eb9b0

Browse files
test: add test for #145 (#181)
1 parent edf9e66 commit b9eb9b0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/lib/rules/prefer-wait-for.test.ts

+12
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ ruleTester.run(RULE_NAME, rule, {
6060
cy.wait();
6161
`,
6262
},
63+
{
64+
// https://github.com/testing-library/eslint-plugin-testing-library/issues/145
65+
code: `
66+
async function wait(): Promise<any> {
67+
// doesn't matter
68+
}
69+
70+
function callsWait(): void {
71+
await wait();
72+
}
73+
`,
74+
},
6375
],
6476

6577
invalid: [

0 commit comments

Comments
 (0)