Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit c8f64ad

Browse files
committed
Remove file output in libass.test.js
1 parent 50aaa85 commit c8f64ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

wasm/tests/libass.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ test('transcode avi to x264 mp4 with *.srt subtitle', async () => {
4242

4343
test('transcode avi to x264 mp4 with *.ass subtitle', async () => {
4444
const args = ['-i', IN_FILE_NAME, '-vf', 'ass=test.ass:fontsdir=/fonts', OUT_FILE_NAME];
45-
const { fileSize, file } = await runFFmpeg(IN_FILE_NAME, aviData, args, OUT_FILE_NAME, [{ name: '/fonts/arial.ttf', data: b64ToUint8Array(ARIAL_TTF) }, { name: 'test.ass', data: ASS_FILE }], ['/fonts']);
46-
fs.writeFileSync('subtitle.mp4', file);
45+
const { fileSize } = await runFFmpeg(IN_FILE_NAME, aviData, args, OUT_FILE_NAME, [{ name: '/fonts/arial.ttf', data: b64ToUint8Array(ARIAL_TTF) }, { name: 'test.ass', data: ASS_FILE }], ['/fonts']);
4746
expect(fileSize).toBe(MP4_WITH_ASS_FILE_SIZE);
4847
}, TIMEOUT);

0 commit comments

Comments
 (0)