mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 14:27:40 +00:00
- Runs basic Litegraph init before performing the snapshot - Allows a significantly more useful verification of the public API
14 lines
505 B
TypeScript
14 lines
505 B
TypeScript
import { describe } from "vitest"
|
|
import { LGraph } from "@/litegraph"
|
|
import { dirtyTest } from "./testExtensions"
|
|
|
|
describe("LGraph (constructor only)", () => {
|
|
dirtyTest("Matches previous snapshot", ({ expect, minimalSerialisableGraph, basicSerialisableGraph }) => {
|
|
const minLGraph = new LGraph(minimalSerialisableGraph)
|
|
expect(minLGraph).toMatchSnapshot("minLGraph")
|
|
|
|
const basicLGraph = new LGraph(basicSerialisableGraph)
|
|
expect(basicLGraph).toMatchSnapshot("basicLGraph")
|
|
})
|
|
})
|