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
16 lines
658 B
TypeScript
16 lines
658 B
TypeScript
import { describe } from "vitest"
|
|
import { LGraph } from "@/litegraph"
|
|
import { dirtyTest } from "./testExtensions"
|
|
|
|
describe("LGraph configure()", () => {
|
|
dirtyTest("LGraph matches previous snapshot (normal configure() usage)", ({ expect, minimalSerialisableGraph, basicSerialisableGraph }) => {
|
|
const configuredMinGraph = new LGraph()
|
|
configuredMinGraph.configure(minimalSerialisableGraph)
|
|
expect(configuredMinGraph).toMatchSnapshot("configuredMinGraph")
|
|
|
|
const configuredBasicGraph = new LGraph()
|
|
configuredBasicGraph.configure(basicSerialisableGraph)
|
|
expect(configuredBasicGraph).toMatchSnapshot("configuredBasicGraph")
|
|
})
|
|
})
|