The listing test tells the seat's two verbs apart: one keeps its own node, the other takes none

This commit is contained in:
2026-10-01 15:43:36 +02:00
parent 809e2b11ec
commit ce8c37a7fc
+2 -1
View File
@@ -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"]);