Skip to content

Commit 82ff08b

Browse files
author
Kent C. Dodds
authored
Update wait.js
1 parent 93b374e commit 82ff08b

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/__tests__/wait.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,3 @@ test('can timeout after the given timeout time', async () => {
2727
).catch(e => e)
2828
expect(result).toBe(error)
2929
})
30-
31-
test('can timeout after the given timeout time', async () => {
32-
const error = new Error('throws every time')
33-
const result = await wait(
34-
() => {
35-
throw error
36-
},
37-
{timeout: 8, interval: 5},
38-
).catch(e => e)
39-
expect(result).toBe(error)
40-
})

0 commit comments

Comments
 (0)