From 062f3f7726a0cb1bb4474682d4e49bd2f503cdf1 Mon Sep 17 00:00:00 2001 From: Piotr Pekala Date: Tue, 26 Mar 2019 01:38:49 -0700 Subject: [PATCH] Update context-menu.component.spec.ts --- .../project-map/context-menu/context-menu.component.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/components/project-map/context-menu/context-menu.component.spec.ts b/src/app/components/project-map/context-menu/context-menu.component.spec.ts index 7832fb7e..2fdfae66 100644 --- a/src/app/components/project-map/context-menu/context-menu.component.spec.ts +++ b/src/app/components/project-map/context-menu/context-menu.component.spec.ts @@ -8,6 +8,7 @@ import { MatMenuModule, MatMenuTrigger } from '@angular/material'; import { Drawing } from '../../../cartography/models/drawing'; import { RectElement } from '../../../cartography/models/drawings/rect-element'; import { TextElement } from '../../../cartography/models/drawings/text-element'; +import { Server } from '../../../models/server'; describe('ContextMenuComponent', () => { let component: ContextMenuComponent; @@ -28,6 +29,7 @@ describe('ContextMenuComponent', () => { beforeEach(() => { fixture = TestBed.createComponent(ContextMenuComponent); component = fixture.componentInstance; + component.server = {location: 'local'} as Server; fixture.detectChanges(); });