mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-31 13:29:55 +00:00
Stylistic plugin falls short in a few areas when it comes to consistent lists and chaining. Replaced some key rules with antfu's personal variants. `eslint` can now be run repo-wide without params.
16 lines
507 B
TypeScript
16 lines
507 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")
|
|
})
|
|
})
|