Skip to content

Commit 0bf81a6

Browse files
committed
chore: add valid test case
Signed-off-by: hainenber <[email protected]>
1 parent 36e4235 commit 0bf81a6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/rules/__tests__/no-async-wrapper-for-expected-promise.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ ruleTester.run('no-async-wrapper-for-expected-promise', rule, {
5151
}).rejects.toThrow();
5252
})
5353
`,
54+
dedent`
55+
it('pass', async () => {
56+
await expect(async () => {
57+
const a = 1;
58+
await doSomethingSync(a);
59+
}).rejects.toThrow();
60+
})
61+
`,
5462
],
5563
invalid: [
5664
{

0 commit comments

Comments
 (0)