test(transcode): assert body is expect.any(ReadableStream) in S3 upload tests

This commit is contained in:
yiling
2026-07-29 21:42:54 +08:00
parent 69c57b16ab
commit cd8a9e58fd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -102,6 +102,6 @@ describe('S3 API', () => {
expect(res.status).toBe(200)
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)
})
})