mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-11 00:10:40 +00:00
Add 'src/lib/litegraph/' from commit '1b58bf4966e9cdaa04bfaa40f5650b6c6680ab97'
git-subtree-dir: src/lib/litegraph git-subtree-mainline:1eadf80fecgit-subtree-split:1b58bf4966
This commit is contained in:
17
src/lib/litegraph/test/LLink.test.ts
Normal file
17
src/lib/litegraph/test/LLink.test.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { describe, expect } from "vitest"
|
||||
|
||||
import { LLink } from "@/litegraph"
|
||||
|
||||
import { test } from "./testExtensions"
|
||||
|
||||
describe("LLink", () => {
|
||||
test("matches previous snapshot", () => {
|
||||
const link = new LLink(1, "float", 4, 2, 5, 3)
|
||||
expect(link.serialize()).toMatchSnapshot("Basic")
|
||||
})
|
||||
|
||||
test("serializes to the previous snapshot", () => {
|
||||
const link = new LLink(1, "float", 4, 2, 5, 3)
|
||||
expect(link.serialize()).toMatchSnapshot("Basic")
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user