mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 12:54:55 +00:00
test(transcode): assert body is expect.any(ReadableStream) in S3 upload tests
This commit is contained in:
@@ -102,6 +102,6 @@ describe('S3 API', () => {
|
|||||||
|
|
||||||
expect(res.status).toBe(200)
|
expect(res.status).toBe(200)
|
||||||
expect(await res.text()).toBe('OK')
|
expect(await res.text()).toBe('OK')
|
||||||
expect(mockPut).toHaveBeenCalledWith('b1', 'test.webp', expect.anything(), body.byteLength)
|
expect(mockPut).toHaveBeenCalledWith('b1', 'test.webp', expect.any(ReadableStream), body.byteLength)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -610,7 +610,7 @@ describe('Transcode Activities', () => {
|
|||||||
expect(s3Service.putObject).toHaveBeenCalledWith(
|
expect(s3Service.putObject).toHaveBeenCalledWith(
|
||||||
'shumai',
|
'shumai',
|
||||||
'files/proj-123/a-audio-proxy.mp4',
|
'files/proj-123/a-audio-proxy.mp4',
|
||||||
expect.anything(),
|
expect.any(ReadableStream),
|
||||||
expect.any(Number),
|
expect.any(Number),
|
||||||
'video/mp4',
|
'video/mp4',
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user