Adding an extra test to ensure quote params work even if no spaces

This commit is contained in:
Paul Kinlan
2020-04-14 03:34:07 +01:00
parent 917880e1b7
commit 5ae3330d2e
2 changed files with 13 additions and 0 deletions

View File

@@ -20,6 +20,17 @@ describe('transcode()', () => {
});
describe('run()', () => {
describe('should run a command with quoted parameters at start no spaces', () => {
['flame.avi'].forEach((name) => (
it(`run ${name}`, async () => {
await worker.write(name, `${BASE_URL}/${name}`);
await worker.run(`-y -i ${name} -metadata 'title="test"' output.mp4`);
const { data } = await worker.read('output.mp4');
expect(data.length).to.be(META_FLAME_MP4_LENGTH_NO_SPACE);
}).timeout(TIMEOUT)
));
});
describe('should run a command with quoted parameters at start and a space in between', () => {
['flame.avi'].forEach((name) => (
it(`run ${name}`, async () => {