From 7d8bdcb05a6e464642ae405cd8f9b293a4ce2347 Mon Sep 17 00:00:00 2001 From: bymyself Date: Thu, 4 Sep 2025 19:43:38 -0700 Subject: [PATCH] remove debug viewport test --- src/components/graph/TransformPane.spec.ts | 21 --------------------- src/components/graph/TransformPane.vue | 1 - 2 files changed, 22 deletions(-) diff --git a/src/components/graph/TransformPane.spec.ts b/src/components/graph/TransformPane.spec.ts index 79c494a38..acfa172ee 100644 --- a/src/components/graph/TransformPane.spec.ts +++ b/src/components/graph/TransformPane.spec.ts @@ -347,25 +347,4 @@ describe('TransformPane', () => { expect(wrapper.find('[data-node-id="test"]').exists()).toBe(true) }) }) - - describe('viewport prop handling', () => { - it('should handle missing viewport prop', async () => { - wrapper = mount(TransformPane, { - props: { - canvas: mockCanvas - } - }) - - // Should not crash when viewport is undefined - expect(wrapper.exists()).toBe(true) - - expect(wrapper.text()).toContain('800x600') - - await wrapper.setProps({ - viewport: { width: 1920, height: 1080 } - }) - - expect(wrapper.text()).toContain('1920x1080') - }) - }) }) diff --git a/src/components/graph/TransformPane.vue b/src/components/graph/TransformPane.vue index 2ebed99fb..266dd0569 100644 --- a/src/components/graph/TransformPane.vue +++ b/src/components/graph/TransformPane.vue @@ -20,7 +20,6 @@ import { LGraphCanvas } from '@/lib/litegraph/src/litegraph' interface TransformPaneProps { canvas?: LGraphCanvas - viewport?: { width: number; height: number } } const props = defineProps()