Check includes property

This commit is contained in:
HaveAGitGat 2023-05-08 14:35:36 +01:00
parent 5a47a13501
commit c00dfa7d9e
2 changed files with 45 additions and 5 deletions

View file

@ -88,6 +88,24 @@ const tests = [
},
},
{
input: {
file: _.cloneDeep(require('../sampleData/media/sampleH264_2.json')),
librarySettings: {},
inputs: {
propertyName: 'file',
propertyValues: 'Source Folder/h264.mkv',
continueIfPropertyFound: false,
},
otherArguments: {},
},
output: {
processFile: false,
infoLog: 'File property file of C:/Transcode/Source Folder/h264.mkv being one of Source Folder/h264.mkv has been found, breaking out of stack \n',
},
},
// // continueIfPropertyFound: true
{
@ -161,6 +179,24 @@ const tests = [
infoLog: 'File property video_resolution of 1080p being one of 721p,1081p has not been found, breaking out of stack \n',
},
},
{
input: {
file: _.cloneDeep(require('../sampleData/media/sampleH264_2.json')),
librarySettings: {},
inputs: {
propertyName: 'file',
propertyValues: 'Source Folder/h264.mkv',
continueIfPropertyFound: true,
},
otherArguments: {},
},
output: {
processFile: true,
infoLog: 'File property file of C:/Transcode/Source Folder/h264.mkv being one of Source Folder/h264.mkv has been found, continuing to next plugin \n',
},
},
];
run(tests);