mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
test: fix TS2783 in nodes-utils helper
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user