move: test type choices into function

This commit is contained in:
flx-sta 2024-09-17 18:53:06 -07:00
parent 71616fc39d
commit 5940f83b95
1 changed files with 1 additions and 3 deletions

View File

@ -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"],
},
]);