-
Notifications
You must be signed in to change notification settings - Fork 811
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import test from 'ava'; | ||
import ffmpeg from '@ffmpeg-installer/ffmpeg'; | ||
import execa from 'execa'; | ||
|
||
test('it should be able to find ffmpeg', t => { | ||
t.deepEqual(ffmpeg, ffmpeg); | ||
}); | ||
|
||
test('it should be able to find execa', t => { | ||
t.deepEqual(execa, execa); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import test from 'ava'; | ||
import supportedVideoExtensions from '../main/common/constants'; | ||
|
||
test('it should support mp4 mov and m4v', t => { | ||
t.deepEqual(supportedVideoExtensions, {supportedVideoExtensions: ['mp4', 'mov', 'm4v']}); | ||
}); | ||
|
||
test('file extensions should equal .mp4 .mov and .m4v', t => { | ||
const supportedVideoExtensions = ['mp4', 'mov', 'm4v']; | ||
const fileExtensions = supportedVideoExtensions.map(ext => `.${ext}`); | ||
t.deepEqual(fileExtensions, ['.mp4', '.mov', '.m4v']); | ||
}); |