From eba1e07a0f7bd4bff1f07066fe529ee11697a3c5 Mon Sep 17 00:00:00 2001 From: Piotr Pekala Date: Wed, 25 Sep 2019 02:52:12 -0700 Subject: [PATCH] Update topology-summary.component.spec.ts --- .../topology-summary/topology-summary.component.spec.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/components/topology-summary/topology-summary.component.spec.ts b/src/app/components/topology-summary/topology-summary.component.spec.ts index d697e371..07369e75 100644 --- a/src/app/components/topology-summary/topology-summary.component.spec.ts +++ b/src/app/components/topology-summary/topology-summary.component.spec.ts @@ -6,13 +6,14 @@ import { MatTableModule, MatTooltipModule, MatIconModule, MatSortModule, MatDial import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { of } from 'rxjs'; -import { MockedNodesDataSource } from '../project-map/project-map.component.spec'; +import { MockedNodesDataSource, MockedLinksDataSource } from '../project-map/project-map.component.spec'; import { NodesDataSource } from '../../cartography/datasources/nodes-datasource'; import { NO_ERRORS_SCHEMA } from '@angular/core'; import { Project } from '../../models/project'; import { Node } from '../../cartography/models/node'; import { Server } from '../../models/server'; import { ComputeService } from '../../services/compute.service'; +import { LinksDataSource } from '../../cartography/datasources/links-datasource'; export class MockedComputeService { getComputes(server: Server) { @@ -26,6 +27,7 @@ describe('TopologySummaryComponent', () => { let mockedProjectService: MockedProjectService = new MockedProjectService(); let mockedNodesDataSource: MockedNodesDataSource = new MockedNodesDataSource(); let mockedComputeService: MockedComputeService = new MockedComputeService(); + let mockedLinksDataSource: MockedLinksDataSource = new MockedLinksDataSource(); beforeEach(async(() => { TestBed.configureTestingModule({ @@ -41,7 +43,8 @@ describe('TopologySummaryComponent', () => { providers: [ { provide: ProjectService, useValue: mockedProjectService }, { provide: NodesDataSource, useValue: mockedNodesDataSource }, - { provide: ComputeService, useValue: mockedComputeService} + { provide: ComputeService, useValue: mockedComputeService}, + { provide: LinksDataSource, useValue: mockedLinksDataSource } ], declarations: [TopologySummaryComponent], schemas: [NO_ERRORS_SCHEMA]