konowebcodecs/tests/constants.js
Paul Kinlan 917880e1b7 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.
2020-04-14 03:30:17 +01:00

22 lines
607 B
JavaScript

const TIMEOUT = 30000;
const BASE_URL = 'http://localhost:3000/tests/assets';
const IS_BROWSER = typeof window !== 'undefined' && typeof window.document !== 'undefined';
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 = {
TIMEOUT,
BASE_URL,
IS_BROWSER,
OPTIONS,
FLAME_MP4_LENGTH,
META_FLAME_MP4_LENGTH,
};
}