Revert "Format all code with prettier (#197)" (#198)

This reverts commit 28382b7e45.
This commit is contained in:
filtered
2024-10-09 04:14:36 +11:00
committed by GitHub
parent 28382b7e45
commit 5d510cd674
25 changed files with 14522 additions and 16453 deletions

View File

@@ -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");
});

View File

@@ -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]));
});
});
});