Skip to content

Commit 594420a

Browse files
committed
fix(await-async-utils): remove duplicate test case
1 parent 022267f commit 594420a

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

tests/lib/rules/await-async-utils.test.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -292,25 +292,6 @@ ruleTester.run(RULE_NAME, rule, {
292292
293293
await setup().waitForLoadComplete();
294294
});
295-
`,
296-
},
297-
298-
{
299-
code: `
300-
function setup() {
301-
const utils = render(<MyComponent />);
302-
303-
const waitForLoadComplete = () => {
304-
return waitForElementToBeRemoved(screen.queryByTestId('my-test-id'));
305-
};
306-
307-
return { waitForLoadComplete, ...utils };
308-
}
309-
310-
test('destructuring an async function wrapper & handling it later is valid', () => {
311-
const { user, ...rest } = setup();
312-
await rest.waitForLoadComplete();
313-
});
314295
`,
315296
},
316297
]),

0 commit comments

Comments
 (0)