From ce8c37a7fc422a64add09164a6dc45f5c2bb7f2b Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 1 Oct 2026 15:43:36 +0200 Subject: [PATCH] The listing test tells the seat's two verbs apart: one keeps its own node, the other takes none --- test/mcp.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"]);