mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-27 10:14:06 +00:00
(prettier formatting)
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
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]))
|
||||
})
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user