The listing test tells the seat's two verbs apart: one keeps its own node, the other takes none
This commit is contained in:
+2
-1
@@ -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.
|
// `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.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.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.
|
// Silence is named: the module the catalogue holds and nothing answered for.
|
||||||
assert.deepEqual(byId.get(2)!.result._meta.notAnswering, ["ghost"]);
|
assert.deepEqual(byId.get(2)!.result._meta.notAnswering, ["ghost"]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user