Skip to content

Commit

Permalink
Typecast mocked data as Blob in upload unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwengerter committed May 14, 2024
1 parent eff36eb commit 77891d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/web-app-files/tests/unit/HandleUpload.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ describe('HandleUpload', () => {
mock<UppyResource>({
name: 'name',
meta: { spaceId: '1', routeName: locationSpacesGeneric.name as string },
data: { size }
data: { size } as Blob
})
])
expect(result).toBe(quotaExceeded)
Expand All @@ -181,7 +181,7 @@ describe('HandleUpload', () => {
mock<UppyResource>({
name: 'name',
meta: { spaceId: '1', routeName: locationSpacesGeneric.name as string },
data: { size }
data: { size } as Blob
})
])
expect(result).toBeFalsy()
Expand All @@ -200,7 +200,7 @@ describe('HandleUpload', () => {
mock<UppyResource>({
name: 'name',
meta: { spaceId: '1', routeName: locationSpacesGeneric.name as string },
data: { size }
data: { size } as Blob
})
])
expect(result).toBeFalsy()
Expand Down

0 comments on commit 77891d7

Please sign in to comment.