mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-28 00:38:50 +00:00
Fix tests
This commit is contained in:
parent
a27a7ff4ee
commit
9447622e1f
@ -13,6 +13,8 @@ import { Link } from '../../../../../models/link';
|
|||||||
import { DrawingService } from '../../../../../services/drawing.service';
|
import { DrawingService } from '../../../../../services/drawing.service';
|
||||||
import { LinkService } from '../../../../../services/link.service';
|
import { LinkService } from '../../../../../services/link.service';
|
||||||
import { NodeService } from '../../../../../services/node.service';
|
import { NodeService } from '../../../../../services/node.service';
|
||||||
|
import { ToasterService } from '../../../../../services/toaster.service';
|
||||||
|
import { MockedToasterService } from '../../../../../services/toaster.service.spec';
|
||||||
import { MockedDrawingService, MockedLinkService, MockedNodeService } from '../../../project-map.component.spec';
|
import { MockedDrawingService, MockedLinkService, MockedNodeService } from '../../../project-map.component.spec';
|
||||||
import { DeleteActionComponent } from './delete-action.component';
|
import { DeleteActionComponent } from './delete-action.component';
|
||||||
|
|
||||||
@ -22,6 +24,7 @@ describe('DeleteActionComponent', () => {
|
|||||||
let mockedNodeService: MockedNodeService = new MockedNodeService();
|
let mockedNodeService: MockedNodeService = new MockedNodeService();
|
||||||
let mockedDrawingService: MockedDrawingService = new MockedDrawingService();
|
let mockedDrawingService: MockedDrawingService = new MockedDrawingService();
|
||||||
let mockedLinkService: MockedLinkService = new MockedLinkService();
|
let mockedLinkService: MockedLinkService = new MockedLinkService();
|
||||||
|
let mockedToasterService = new MockedToasterService();
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
@ -33,6 +36,7 @@ describe('DeleteActionComponent', () => {
|
|||||||
{ provide: NodeService, useValue: mockedNodeService },
|
{ provide: NodeService, useValue: mockedNodeService },
|
||||||
{ provide: DrawingService, useValue: mockedDrawingService },
|
{ provide: DrawingService, useValue: mockedDrawingService },
|
||||||
{ provide: LinkService, useValue: mockedLinkService },
|
{ provide: LinkService, useValue: mockedLinkService },
|
||||||
|
{ provide: ToasterService, useValue: mockedToasterService},
|
||||||
],
|
],
|
||||||
declarations: [DeleteActionComponent],
|
declarations: [DeleteActionComponent],
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
|
Loading…
Reference in New Issue
Block a user