From 8fc04f8ab016c9a0fc67db4f453ac7278b2c8a50 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Sat, 21 May 2022 15:13:21 +0100 Subject: [PATCH] Add Tdarr_Plugin_00td_action_remux_container test --- ...darr_Plugin_00td_action_remux_container.js | 1 - ...darr_Plugin_00td_action_remux_container.js | 65 +++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 tests/Community/Tdarr_Plugin_00td_action_remux_container.js diff --git a/Community/Tdarr_Plugin_00td_action_remux_container.js b/Community/Tdarr_Plugin_00td_action_remux_container.js index a45b03c..d43cf84 100644 --- a/Community/Tdarr_Plugin_00td_action_remux_container.js +++ b/Community/Tdarr_Plugin_00td_action_remux_container.js @@ -1,4 +1,3 @@ -// tdarrSkipTest const details = () => ({ id: 'Tdarr_Plugin_00td_action_remux_container', Stage: 'Pre-processing', diff --git a/tests/Community/Tdarr_Plugin_00td_action_remux_container.js b/tests/Community/Tdarr_Plugin_00td_action_remux_container.js new file mode 100644 index 0000000..154f2da --- /dev/null +++ b/tests/Community/Tdarr_Plugin_00td_action_remux_container.js @@ -0,0 +1,65 @@ +/* eslint max-len: 0 */ +const run = require('../helpers/run'); + +const tests = [ + { + input: { + file: require('../sampleData/media/sampleH264_1.json'), + librarySettings: {}, + inputs: {}, + otherArguments: {}, + }, + output: { + processFile: true, + preset: ', -map 0 -c copy', + container: '.mkv', + handBrakeMode: false, + FFmpegMode: true, + reQueueAfter: true, + infoLog: 'File is not in mkv \n', + handbrakeMode: false + }, + }, + { + input: { + file: require('../sampleData/media/sampleH264_1.json'), + librarySettings: {}, + inputs: { + container: 'mkv' + }, + otherArguments: {}, + }, + output: { + processFile: true, + preset: ', -map 0 -c copy', + container: '.mkv', + handBrakeMode: false, + FFmpegMode: true, + reQueueAfter: true, + infoLog: 'File is not in mkv \n', + handbrakeMode: false + }, + }, + { + input: { + file: require('../sampleData/media/sampleH264_1.json'), + librarySettings: {}, + inputs: { + container: 'mp4' + }, + otherArguments: {}, + }, + output: { + processFile: false, + preset: ', -map 0 -c copy', + container: '.mp4', + handBrakeMode: false, + FFmpegMode: true, + reQueueAfter: true, + infoLog: 'File is already in mp4 \n', + handbrakeMode: false + }, + }, +]; + +run(tests);