mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 06:19:58 +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.
18 lines
469 B
TypeScript
18 lines
469 B
TypeScript
import { describe, expect } from "vitest"
|
|
|
|
import { LLink } from "@/litegraph"
|
|
|
|
import { test } from "./testExtensions"
|
|
|
|
describe("LLink", () => {
|
|
test("matches previous snapshot", () => {
|
|
const link = new LLink(1, "float", 4, 2, 5, 3)
|
|
expect(link.serialize()).toMatchSnapshot("Basic")
|
|
})
|
|
|
|
test("serializes to the previous snapshot", () => {
|
|
const link = new LLink(1, "float", 4, 2, 5, 3)
|
|
expect(link.serialize()).toMatchSnapshot("Basic")
|
|
})
|
|
})
|