mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
Update litegraph (Getters) (#829)
* Update litegraph (Getters) * Update
This commit is contained in:
@@ -518,8 +518,8 @@ describe('group node', () => {
|
||||
vaeReroute
|
||||
])
|
||||
group1.menu.Clone.call()
|
||||
expect(app.graph._nodes).toHaveLength(4)
|
||||
const group2 = graph.find(app.graph._nodes[3])
|
||||
expect(app.graph.nodes).toHaveLength(4)
|
||||
const group2 = graph.find(app.graph.nodes[3])
|
||||
expect(group2.node.type).toEqual('workflow/test')
|
||||
expect(group2.id).not.toEqual(group1.id)
|
||||
|
||||
@@ -679,8 +679,8 @@ describe('group node', () => {
|
||||
|
||||
// Clone the node
|
||||
group1.menu.Clone.call()
|
||||
expect(app.graph._nodes).toHaveLength(3)
|
||||
const group2 = graph.find(app.graph._nodes[2])
|
||||
expect(app.graph.nodes).toHaveLength(3)
|
||||
const group2 = graph.find(app.graph.nodes[2])
|
||||
expect(group2.node.type).toEqual('workflow/test')
|
||||
expect(group2.id).not.toEqual(group1.id)
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ describe('LGraph', () => {
|
||||
const result1 = graph.serialize({ sortNodes: true })
|
||||
expect(result1.nodes).not.toHaveLength(0)
|
||||
// @ts-expect-error Access private property.
|
||||
graph._nodes = swapNodes(graph._nodes)
|
||||
graph._nodes = swapNodes(graph.nodes)
|
||||
const result2 = graph.serialize({ sortNodes: true })
|
||||
|
||||
expect(result1).toEqual(result2)
|
||||
|
||||
Reference in New Issue
Block a user