Skip to content

Commit

Permalink
fixed type error of fs.writeFile
Browse files Browse the repository at this point in the history
  • Loading branch information
eric2788 committed Oct 16, 2024
1 parent 076309c commit 3494a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/units/ffmpeg.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test('測試 ffmpeg.wasm 轉換 mp4 到 gif', async ({ context, page, modules })

expect(info.duration).toBeGreaterThan(0)

await fs.writeFile('out/input.mp4', mp4Content, {})
await fs.writeFile('out/input.mp4', new Uint8Array(mp4Content), {})

const mp4 = atob(mp4Content.toString('base64')).split('').map(c => c.charCodeAt(0))
await page.evaluate(async (mp4) => {
Expand Down

0 comments on commit 3494a1a

Please sign in to comment.