Skip to content

Commit 6ca0146

Browse files
author
lh01217311
committed
fix: update test to pass TypeScript check
- Use sync function instead of async for data rejection test - This covers the rejection handling code path
1 parent 499043a commit 6ca0146

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/uploader.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ describe('uploader', () => {
315315
<Upload
316316
ref={uploadRef}
317317
action="/test"
318-
data={async () => {
318+
data={() => {
319319
throw new Error('data error');
320320
}}
321321
/>,

0 commit comments

Comments
 (0)