From 5940f83b95da9f4aa3149a384b0e908cb8c2d669 Mon Sep 17 00:00:00 2001 From: flx-sta <50131232+flx-sta@users.noreply.github.com> Date: Tue, 17 Sep 2024 18:53:06 -0700 Subject: [PATCH] move: test type choices into function --- create-test-boilerplate.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/create-test-boilerplate.js b/create-test-boilerplate.js index cb991c24d79..5a7b8188583 100644 --- a/create-test-boilerplate.js +++ b/create-test-boilerplate.js @@ -15,8 +15,6 @@ import { fileURLToPath } from "url"; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); -const typeChoices = ["Move", "Ability", "Item", "EXIT"]; - /** * Prompts the user to select a type via list. * @returns {Promise<{selectedOption: string}>} the selected type @@ -27,7 +25,7 @@ async function promptTestType() { type: "list", name: "selectedOption", message: "What type of test would you like to create:", - choices: typeChoices, + choices: ["Move", "Ability", "Item", "EXIT"], }, ]);