mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-29 11:42:21 +02:00
move: test type choices into function
This commit is contained in:
parent
71616fc39d
commit
5940f83b95
@ -15,8 +15,6 @@ import { fileURLToPath } from "url";
|
|||||||
const __filename = fileURLToPath(import.meta.url);
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
const __dirname = path.dirname(__filename);
|
const __dirname = path.dirname(__filename);
|
||||||
|
|
||||||
const typeChoices = ["Move", "Ability", "Item", "EXIT"];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prompts the user to select a type via list.
|
* Prompts the user to select a type via list.
|
||||||
* @returns {Promise<{selectedOption: string}>} the selected type
|
* @returns {Promise<{selectedOption: string}>} the selected type
|
||||||
@ -27,7 +25,7 @@ async function promptTestType() {
|
|||||||
type: "list",
|
type: "list",
|
||||||
name: "selectedOption",
|
name: "selectedOption",
|
||||||
message: "What type of test would you like to create:",
|
message: "What type of test would you like to create:",
|
||||||
choices: typeChoices,
|
choices: ["Move", "Ability", "Item", "EXIT"],
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user