Skip to content

Commit ad8f025

Browse files
committed
added in more tests
1 parent 4b7e96f commit ad8f025

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@
123123
"files": [
124124
"test/window-header.js",
125125
"test/keyboard-number-input.js",
126+
"test/open-files.js",
127+
"test/encoding.js",
126128
"!/test/editor"
127129
],
128130
"require": [

test/encoding.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import test from 'ava';
2+
import ffmpeg from '@ffmpeg-installer/ffmpeg';
3+
import execa from 'execa';
4+
5+
test('it should be able to find ffmpeg', t => {
6+
t.deepEqual(ffmpeg, ffmpeg);
7+
});
8+
9+
test('it should be able to find execa', t => {
10+
t.deepEqual(execa, execa);
11+
});
12+

test/open-files.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import test from 'ava';
2+
import supportedVideoExtensions from '../main/common/constants';
3+
4+
test('it should support mp4 mov and m4v', t => {
5+
t.deepEqual(supportedVideoExtensions, {supportedVideoExtensions: ['mp4', 'mov', 'm4v']});
6+
});
7+
8+
test('file extensions should equal .mp4 .mov and .m4v', t => {
9+
const supportedVideoExtensions = ['mp4', 'mov', 'm4v'];
10+
const fileExtensions = supportedVideoExtensions.map(ext => `.${ext}`);
11+
t.deepEqual(fileExtensions, ['.mp4', '.mov', '.m4v']);
12+
});

0 commit comments

Comments
 (0)