Files
ComfyUI_frontend/test/LLink.test.ts
filtered f3b51a534e [Test] Standardise unit test infrastructure (#572)
* [Test] Revert custom name for test context

- Removes "lgTest", replaces with default "test"

* nit - Rename test extensions file

* Split test graphs out to separate file
2025-02-24 01:56:22 +00:00

16 lines
467 B
TypeScript

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