fix: typo (#1156) #5269
Annotations
5 errors
Test:
packages/uploadthing/test/sdk.live.test.ts#L80
AssertionError: expected { data: null, error: { …(3) } } to deeply equal { Object (data, error) }
- Expected
+ Received
Object {
- "data": Object {
- "appUrl": StringMatching /^https:\/\/utfs.io\/a\/fr0hfwpst1\/.+$/,
- "customId": null,
- "fileHash": Any<String>,
- "key": StringMatching /.+/,
- "lastModified": 1740269792495,
- "name": "foo.txt",
- "size": 3,
- "type": "text/plain",
- "ufsUrl": StringMatching /^https:\/\/fr0hfwpst1.ufs.sh\/f\/.+$/,
- "url": StringMatching /^https:\/\/utfs.io\/f\/.+$/,
+ "data": null,
+ "error": Object {
+ "code": "UPLOAD_FAILED",
+ "data": undefined,
+ "message": "Failed to upload file",
},
- "error": null,
}
❯ packages/uploadthing/test/sdk.live.test.ts:80:22
|
Test:
packages/uploadthing/test/sdk.live.test.ts#L116
AssertionError: expected { data: null, error: { …(3) } } to deeply equal { Object (data, error) }
- Expected
+ Received
Object {
- "data": Object {
- "appUrl": StringMatching /^https:\/\/utfs.io\/a\/fr0hfwpst1\/.+$/,
- "customId": null,
- "fileHash": Any<String>,
- "key": StringMatching /.+/,
- "lastModified": 1740269795138,
- "name": "foo.txt",
- "size": 3,
- "type": "text/plain",
- "ufsUrl": StringMatching /^https:\/\/fr0hfwpst1.ufs.sh\/f\/.+$/,
- "url": StringMatching /^https:\/\/utfs.io\/f\/.+$/,
+ "data": null,
+ "error": Object {
+ "code": "UPLOAD_FAILED",
+ "data": undefined,
+ "message": "Failed to upload file",
},
- "error": null,
}
❯ packages/uploadthing/test/sdk.live.test.ts:116:22
|
Test:
packages/uploadthing/test/sdk.live.test.ts#L147
AssertionError: expected { data: null, error: { …(3) } } to deeply equal { Object (data, error) }
- Expected
+ Received
Object {
- "data": Object {
- "appUrl": StringMatching /^https:\/\/utfs.io\/a\/fr0hfwpst1\/.+$/,
- "customId": null,
- "fileHash": Any<String>,
- "key": StringMatching /.+/,
- "lastModified": Any<Number>,
- "name": "favicon.ico",
- "size": Any<Number>,
- "type": "image/vnd.microsoft.icon",
- "ufsUrl": StringMatching /^https:\/\/fr0hfwpst1.ufs.sh\/f\/.+$/,
- "url": StringMatching /^https:\/\/utfs.io\/f\/.+$/,
+ "data": null,
+ "error": Object {
+ "code": "UPLOAD_FAILED",
+ "data": undefined,
+ "message": "Failed to upload file",
},
- "error": null,
}
❯ packages/uploadthing/test/sdk.live.test.ts:147:22
|
Test:
packages/uploadthing/test/sdk.live.test.ts#L170
TypeError: Cannot read properties of null (reading 'key')
❯ packages/uploadthing/test/sdk.live.test.ts:170:36
|
Test
Process completed with exit code 1.
|
Loading