Skip to content

Commit 12a4292

Browse files
committed
remove Promise.reject
1 parent 726e0cf commit 12a4292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/useAsync.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe('useAync', () => {
5353
const { result, waitForNextUpdate } = renderHook(() =>
5454
useAsync(
5555
async () => {
56-
return Promise.reject(new Error('something went wrong'));
56+
throw new Error('something went wrong');
5757
},
5858
[],
5959
{

0 commit comments

Comments
 (0)