Adding two tests for command parser.

* Test 1: quotes appear at start of command  and has a space in
* Test 2: quote appears in a command, and has a space.
This commit is contained in:
Paul Kinlan
2020-04-14 03:30:17 +01:00
parent b35eeba94c
commit 917880e1b7
4 changed files with 64 additions and 20 deletions

View File

@@ -4,8 +4,10 @@ const IS_BROWSER = typeof window !== 'undefined' && typeof window.document !== '
const OPTIONS = {
corePath: '../node_modules/@ffmpeg/core/ffmpeg-core.js',
...(IS_BROWSER ? { workerPath: '../dist/worker.dev.js' } : {}),
logger: ({ message }) => console.log(message),
};
const FLAME_MP4_LENGTH = 100374;
const META_FLAME_MP4_LENGTH = 100408;
if (typeof module !== 'undefined') {
module.exports = {
@@ -14,5 +16,6 @@ if (typeof module !== 'undefined') {
IS_BROWSER,
OPTIONS,
FLAME_MP4_LENGTH,
META_FLAME_MP4_LENGTH,
};
}