From 6488b8f98793e519ac5563993bcc61e7d65a438c Mon Sep 17 00:00:00 2001 From: Philip Langer Date: Wed, 4 Oct 2023 21:00:02 +0200 Subject: [PATCH] Change to ViewportRootElementImpl in viewport test Change-Id: If030a1469895acfe69a0792ffba2be09cb6cf2e5 --- packages/sprotty/src/features/viewport/viewport.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sprotty/src/features/viewport/viewport.spec.ts b/packages/sprotty/src/features/viewport/viewport.spec.ts index 86150968..448a3971 100644 --- a/packages/sprotty/src/features/viewport/viewport.spec.ts +++ b/packages/sprotty/src/features/viewport/viewport.spec.ts @@ -23,7 +23,7 @@ import { ConsoleLogger } from '../../utils/logging'; import { AnimationFrameSyncer } from '../../base/animations/animation-frame-syncer'; import { CommandExecutionContext } from '../../base/commands/command'; import { SetViewportCommand } from './viewport'; -import { ViewportRootElement } from './viewport-root'; +import { ViewportRootElementImpl } from './viewport-root'; import defaultModule from '../../base/di.config'; import { SetViewportAction, Viewport, almostEquals } from 'sprotty-protocol'; import { IModelFactory } from '../../base/model/smodel-factory'; @@ -40,7 +40,7 @@ describe('BoundsAwareViewportCommand', () => { const graphFactory = container.get(TYPES.IModelFactory); const viewportData: Viewport = { scroll: { x: 0, y: 0 }, zoom: 1 }; - const viewport: ViewportRootElement = graphFactory.createRoot({ id: 'viewport1', type: 'graph', children: [] }) as ViewportRootElement; + const viewport: ViewportRootElementImpl = graphFactory.createRoot({ id: 'viewport1', type: 'graph', children: [] }) as ViewportRootElementImpl; viewport.zoom = viewportData.zoom; viewport.scroll = viewportData.scroll;