Files
ComfyUI_frontend/test/LLink.test.ts
filtered 7e21b00cc7 Replace test framework: jest -> vitest (#281)
* Replace test framework: jest -> vitest

* nit - remove deprecated npm scripts

* Add vitest config

* Add a few basic tests

* Update actions with vitest params

* Add correct expectations

* Remove jest config
2024-11-06 17:27:32 -05:00

16 lines
465 B
TypeScript

import { describe, expect } from "vitest"
import { LLink } from "@/litegraph"
import { lgTest } from "./lgTest"
describe("LLink", () => {
lgTest("matches previous snapshot", () => {
const link = new LLink(1, "float", 4, 2, 5, 3)
expect(link.serialize()).toMatchSnapshot("Basic")
})
lgTest("serializes to the previous snapshot", () => {
const link = new LLink(1, "float", 4, 2, 5, 3)
expect(link.serialize()).toMatchSnapshot("Basic")
})
})