mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 14:27:40 +00:00
* 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
16 lines
465 B
TypeScript
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")
|
|
})
|
|
})
|