From 7bfa40b1f98d8870a353e6cc803b82ddc8246790 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Fri, 31 Dec 2021 13:04:39 +0000 Subject: [PATCH] Add plugin inputUI type check --- tests/checkPlugins.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/checkPlugins.js b/tests/checkPlugins.js index 42c4375..fb1bc7d 100644 --- a/tests/checkPlugins.js +++ b/tests/checkPlugins.js @@ -157,6 +157,9 @@ module.exports.plugin = plugin;`; console.log(`Plugin Input type does not match defaultValue type: '${folder}/${files[i]}' : ${inputs[j].name}`); process.exit(1); + } else if (!['text', 'dropdown'].includes(inputs[j].inputUI.type)) { + console.log(`Plugin Input inputUI is invalid: '${folder}/${files[i]}' : ${inputs[j].name}`); + process.exit(1); } else if (inputs[j].defaultValue === undefined) { console.log(`Plugin Input does not have a default value: '${folder}/${files[i]}' : ${inputs[j].name}`); process.exit(1);