mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-24 15:16:38 +00:00
Update cloud-nodes-add-template.component.spec.ts
This commit is contained in:
parent
535a48211a
commit
e33fe70a38
@ -20,6 +20,8 @@ import { BuiltInTemplatesService } from '../../../../../services/built-in-templa
|
||||
import { ToasterService } from '../../../../../services/toaster.service';
|
||||
import { TemplateMocksService } from '../../../../../services/template-mocks.service';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { ComputeService } from '../../../../../services/compute.service';
|
||||
import {MockedComputeService} from '../../../../preferences/vpcs/add-vpcs-template/add-vpcs-template.component.spec'
|
||||
|
||||
export class MockedBuiltInTemplatesService {
|
||||
public addTemplate(server: Server, cloudTemplate: CloudTemplate) {
|
||||
@ -34,6 +36,7 @@ describe('CloudNodesAddTemplateComponent', () => {
|
||||
let mockedServerService = new MockedServerService;
|
||||
let mockedBuiltInTemplatesService = new MockedBuiltInTemplatesService;
|
||||
let mockedToasterService = new MockedToasterService;
|
||||
let mockedComputeService = new MockedComputeService();
|
||||
let activatedRoute = new MockedActivatedRoute().get();
|
||||
|
||||
beforeEach(async(() => {
|
||||
@ -54,6 +57,7 @@ describe('CloudNodesAddTemplateComponent', () => {
|
||||
{ provide: ServerService, useValue: mockedServerService },
|
||||
{ provide: BuiltInTemplatesService, useValue: mockedBuiltInTemplatesService },
|
||||
{ provide: ToasterService, useValue: mockedToasterService },
|
||||
{ provide: ComputeService, useValue: mockedComputeService },
|
||||
{ provide: TemplateMocksService, useClass: TemplateMocksService }
|
||||
],
|
||||
declarations: [
|
||||
|
Loading…
Reference in New Issue
Block a user