MCPcopy Create free account
hub / github.com/Comfy-Org/litegraph.js / getMockISerialisedNode

Function getMockISerialisedNode

test/LGraphNode.test.ts:13–23  ·  view source on GitHub ↗
(data: Partial<ISerialisedNode>)

Source from the content-addressed store, hash-verified

11import { test } from "./testExtensions"
12
13function getMockISerialisedNode(data: Partial<ISerialisedNode>): ISerialisedNode {
14 return Object.assign({
15 id: 0,
16 flags: {},
17 type: "TestNode",
18 pos: [100, 100],
19 size: [100, 100],
20 order: 0,
21 mode: 0,
22 }, data)
23}
24
25describe("LGraphNode", () => {
26 let node: LGraphNode

Callers 1

LGraphNode.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected