Skip to content

Commit 98d1506

Browse files
committed
test: simplify LLink spread coverage
Amp-Thread-ID: https://ampcode.com/threads/T-01a027b6-4c48-74a6-b661-995dfaef6bbe
1 parent fd858e6 commit 98d1506

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/lib/litegraph/src/LLink.spreadCopy.test.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ function insertionScenario(consumerCount: number) {
4646
}
4747

4848
describe('plain-object copies of LLink (uncovered)', () => {
49-
// The LLink counterpart of the plain-object slot cases in
50-
// `node/legacySlotLinkMutations.test.ts`. `id`, `type`, `origin_id`,
51-
// `origin_slot`, `target_id`, `target_slot` and `parentId` are prototype
52-
// accessors over `_state`, so a spread copy carries none of them.
5349
beforeEach(() => {
5450
setActivePinia(createTestingPinia({ stubActions: false }))
5551
})
@@ -67,10 +63,7 @@ describe('plain-object copies of LLink (uncovered)', () => {
6763
expect(copy.parentId).toBe(link.parentId)
6864
})
6965

70-
it.fails('rewires consumers through a node inserted from copied links', () => {
71-
// The shape ComfyUI-Custom-Scripts' "Add Clip Skip" and "Add LoRA" use
72-
// (web/js/quickNodes.js): snapshot the outgoing links as spread copies,
73-
// drop them, then reconnect the far ends from the copies. See #15594.
66+
it.fails('rewires Custom-Scripts consumers from copied links (#15594)', () => {
7467
const { graph, source, consumers, inserted } = insertionScenario(2)
7568
const saved: Partial<LLink>[] = source.outputs[1].links!.map((id) => ({
7669
...graph.links[id]

0 commit comments

Comments
 (0)