mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
Update tests
This commit is contained in:
parent
317d74520b
commit
cdfde9b99d
1 changed files with 6 additions and 0 deletions
|
|
@ -186,6 +186,12 @@ module.exports.plugin = plugin;`;
|
|||
} else if (inputs[j].defaultValue === undefined) {
|
||||
console.log(chalk.red(`Plugin Input does not have a default value: '${folder}/${files[i]}' : ${inputs[j].name}`));
|
||||
errorEncountered = true;
|
||||
} else if (inputs[j].inputUI.type === 'dropdown' && !Array.isArray(inputs[j].inputUI.options)) {
|
||||
console.log(chalk.red(`Plugin Input is dropdown but does not have dropdown array: '${folder}/${files[i]}' : ${inputs[j].name}`));
|
||||
errorEncountered = true;
|
||||
} else if (Array.isArray(inputs[j].inputUI.options) && inputs[j].inputUI.options.some((option) => typeof option === 'boolean')) {
|
||||
console.log(chalk.red(`Plugin Input has a boolean dropdown input: '${folder}/${files[i]}' : ${inputs[j].name}`));
|
||||
errorEncountered = true;
|
||||
}
|
||||
|
||||
const count = read.split(inputs[j].name).length - 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue