remove debug viewport test

This commit is contained in:
bymyself
2025-09-04 19:43:38 -07:00
parent 0aed837ff4
commit 7d8bdcb05a
2 changed files with 0 additions and 22 deletions

View File

@@ -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')
})
})
})

View File

@@ -20,7 +20,6 @@ import { LGraphCanvas } from '@/lib/litegraph/src/litegraph'
interface TransformPaneProps {
canvas?: LGraphCanvas
viewport?: { width: number; height: number }
}
const props = defineProps<TransformPaneProps>()