mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 20:08:42 +00:00
test(transcode): update statSync mock for streaming proxy upload assertions
This commit is contained in:
@@ -82,6 +82,7 @@ vi.mock('fs', async (importOriginal) => {
|
||||
return {
|
||||
...actual,
|
||||
readFileSync: vi.fn().mockReturnValue(Buffer.from('fake data')),
|
||||
statSync: vi.fn().mockReturnValue({ size: 9 }),
|
||||
existsSync: vi.fn().mockReturnValue(true),
|
||||
mkdirSync: vi.fn(),
|
||||
unlinkSync: vi.fn(),
|
||||
@@ -609,7 +610,7 @@ describe('Transcode Activities', () => {
|
||||
expect(s3Service.putObject).toHaveBeenCalledWith(
|
||||
'shumai',
|
||||
'files/proj-123/a-audio-proxy.mp4',
|
||||
expect.any(Buffer),
|
||||
expect.anything(),
|
||||
expect.any(Number),
|
||||
'video/mp4',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user