Skip to content

Commit

Permalink
test: add test for #145 (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver authored Jun 20, 2020
1 parent edf9e66 commit b9eb9b0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/lib/rules/prefer-wait-for.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ ruleTester.run(RULE_NAME, rule, {
cy.wait();
`,
},
{
// https://github.com/testing-library/eslint-plugin-testing-library/issues/145
code: `
async function wait(): Promise<any> {
// doesn't matter
}
function callsWait(): void {
await wait();
}
`,
},
],

invalid: [
Expand Down

0 comments on commit b9eb9b0

Please sign in to comment.