test: reformat and expand test coverage
This commit is contained in:
parent
b83ff28f60
commit
974c1a828c
|
|
@ -63,7 +63,10 @@ describe("createGameContext", () => {
|
||||||
registry.register(
|
registry.register(
|
||||||
"test <value>",
|
"test <value>",
|
||||||
async function (this: CommandRunnerContext<IGameContext>, _ctx, 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,
|
id: string,
|
||||||
shapeStr: string,
|
shapeStr: string,
|
||||||
transform = IDENTITY_TRANSFORM,
|
transform = IDENTITY_TRANSFORM,
|
||||||
): InventoryItem {
|
): InventoryItem<Record<string, never>> {
|
||||||
const shape = parseShapeString(shapeStr);
|
const shape = parseShapeString(shapeStr);
|
||||||
return {
|
return {
|
||||||
id,
|
id,
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue