From cdfde9b99d74a6db0cadc008916773730b064b68 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Sun, 5 Mar 2023 21:45:39 +0000 Subject: [PATCH] Update tests --- tests/checkPlugins.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/checkPlugins.js b/tests/checkPlugins.js index 13bab9d..c98e96e 100644 --- a/tests/checkPlugins.js +++ b/tests/checkPlugins.js @@ -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;