test: reformat and expand test coverage
This commit is contained in:
@@ -63,7 +63,10 @@ describe("createGameContext", () => {
|
||||
registry.register(
|
||||
"test <value>",
|
||||
async function (this: CommandRunnerContext<IGameContext>, _ctx, value) {
|
||||
return this.prompt(createPromptDef("prompt <answer>"), () => "ok");
|
||||
return this.prompt(
|
||||
createPromptDef("prompt <answer>"),
|
||||
(answer) => answer,
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user