mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-23 08:14:06 +00:00
This reverts commit 28382b7e45.
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import { LGraph, LiteGraph } from "../dist/litegraph.es.js";
|
||||
import {
|
||||
LGraph,
|
||||
LiteGraph,
|
||||
} from "../dist/litegraph.es.js";
|
||||
|
||||
describe("LegacyLGraph Compatibility Layer", () => {
|
||||
test("LGraph can be instantiated", () => {
|
||||
const graph = new LGraph({ extra: "TestGraph" });
|
||||
const graph = new LGraph({extra: "TestGraph"});
|
||||
expect(graph).toBeInstanceOf(LGraph);
|
||||
expect(graph.extra).toBe("TestGraph");
|
||||
});
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
import { LGraphNode } from "../dist/litegraph.es.js";
|
||||
import {
|
||||
LGraphNode,
|
||||
} from "../dist/litegraph.es.js";
|
||||
|
||||
describe("LGraphNode", () => {
|
||||
it("should serialize position correctly", () => {
|
||||
@@ -9,4 +11,4 @@ describe("LGraphNode", () => {
|
||||
expect(node.pos).toEqual(new Float32Array([10, 10]));
|
||||
expect(node.serialize().pos).toEqual(new Float32Array([10, 10]));
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user