Revert branch to cb6e80a645 (#257)

This commit is contained in:
Chenlei Hu
2024-11-03 09:12:47 -05:00
committed by GitHub
parent 9b0f572ca1
commit 7c0240857c
27 changed files with 14195 additions and 13800 deletions

View File

@@ -1,10 +1,13 @@
import { LGraphNode } from '../src/litegraph'
import {
LGraphNode,
} from "../src/litegraph"
describe('LGraphNode', () => {
it('should serialize position correctly', () => {
const node = new LGraphNode('TestNode')
describe("LGraphNode", () => {
it("should serialize position correctly", () => {
const node = new LGraphNode("TestNode")
node.pos = [10, 10]
expect(node.pos).toEqual(new Float32Array([10, 10]))
expect(node.serialize().pos).toEqual(new Float32Array([10, 10]))
})
})
})