Skip to content

Commit 4c626b4

Browse files
committed
test: fixed multipartStart.test.ts
1 parent bed8e96 commit 4c626b4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/upload-client/test/api/multipartStart.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as factory from '../_fixtureFactory'
33
import { getSettingsForTesting } from '../_helpers'
44
import { UploadError } from '../../src/tools/UploadError'
55

6-
describe.skip('API - multipartStart', () => {
6+
describe('API - multipartStart', () => {
77
const size = factory.file(12).size
88

99
it('should be able to start upload data', async () => {
@@ -44,10 +44,10 @@ describe.skip('API - multipartStart', () => {
4444

4545
const upload = multipartStart(size, settings)
4646

47-
await expect(upload).rejects.toThrowError(
48-
new UploadError(
49-
'File size can not be less than 10485760 bytes. Please use direct upload instead of multipart.'
50-
)
47+
await expect(upload).rejects.toThrow(UploadError)
48+
49+
await expect(upload).rejects.toThrow(
50+
/File size can not be less than \d+ bytes\. Please use direct upload instead of multipart\./
5151
)
5252
})
5353

0 commit comments

Comments
 (0)