mirror of https://github.com/openclaw/openclaw.git
test: fix TS2783 in nodes-utils helper
This commit is contained in:
parent
c53b11dccd
commit
da61aa8a58
|
|
@ -10,9 +10,9 @@ vi.mock("./gateway.js", () => ({
|
|||
import type { NodeListNode } from "./nodes-utils.js";
|
||||
import { listNodes, resolveNodeIdFromList } from "./nodes-utils.js";
|
||||
|
||||
function node(overrides: Partial<NodeListNode> & { nodeId: string }): NodeListNode {
|
||||
function node({ nodeId, ...overrides }: Partial<NodeListNode> & { nodeId: string }): NodeListNode {
|
||||
return {
|
||||
nodeId: overrides.nodeId,
|
||||
nodeId,
|
||||
caps: ["canvas"],
|
||||
connected: true,
|
||||
...overrides,
|
||||
|
|
|
|||
Loading…
Reference in New Issue