test: reformat and expand test coverage
This commit is contained in:
parent
b83ff28f60
commit
974c1a828c
|
|
@ -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,
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ function createTestItem(
|
|||
id: string,
|
||||
shapeStr: string,
|
||||
transform = IDENTITY_TRANSFORM,
|
||||
): InventoryItem {
|
||||
): InventoryItem<Record<string, never>> {
|
||||
const shape = parseShapeString(shapeStr);
|
||||
return {
|
||||
id,
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue