diff --git a/test/mcp.test.ts b/test/mcp.test.ts index 6d4e54b..a8983e7 100644 --- a/test/mcp.test.ts +++ b/test/mcp.test.ts @@ -107,7 +107,8 @@ test("a host initialises, lists the mesh's tools and calls one", async (t) => { // `node`, the machine to ask when the module runs on several (novox/hq ADR 0159), beside them. assert.deepEqual(price.inputSchema.properties.of, { type: "string" }); assert.equal(price.inputSchema.properties.node.type, "string", "a module's tool takes the machine to ask"); - assert.ok(!listed[0].inputSchema.properties?.node, "a seat's verb takes no machine; the seat's scope decides"); + assert.ok(!listed[1].inputSchema.properties?.node, "a seat's verb takes no machine; the seat's scope decides"); + assert.equal(listed[0].inputSchema.properties?.node?.type, "string", "a seat's verb that takes a node of its own keeps it"); // Silence is named: the module the catalogue holds and nothing answered for. assert.deepEqual(byId.get(2)!.result._meta.notAnswering, ["ghost"]);