mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-18 18:56:26 +00:00
Sever service tests fixed
This commit is contained in:
parent
d933135912
commit
4728064675
@ -27,7 +27,7 @@ export class MockedDockerService {
|
||||
}
|
||||
}
|
||||
|
||||
xdescribe('AddDockerTemplateComponent', () => {
|
||||
describe('AddDockerTemplateComponent', () => {
|
||||
let component: AddDockerTemplateComponent;
|
||||
let fixture: ComponentFixture<AddDockerTemplateComponent>;
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
<mat-card class="matCard">
|
||||
<form [formGroup]="templateNameForm">
|
||||
<mat-form-field class="form-field">
|
||||
<input matInput formControlName="templateName" type="text" [(ngModel)]="templateName" placeholder="Template name">
|
||||
<input matInput formControlName="templateName" type="text" placeholder="Template name">
|
||||
</mat-form-field>
|
||||
</form>
|
||||
</mat-card>
|
||||
|
@ -47,6 +47,8 @@ export class AddVpcsTemplateComponent implements OnInit {
|
||||
|
||||
addTemplate() {
|
||||
if (!this.templateNameForm.invalid) {
|
||||
this.templateName = this.templateNameForm.get('templateName').value;
|
||||
|
||||
let vpcsTemplate: VpcsTemplate;
|
||||
|
||||
this.templateMocksService.getVpcsTemplate().subscribe((template: VpcsTemplate) => {
|
||||
|
@ -151,6 +151,7 @@ describe('ServerService', () => {
|
||||
expectedServer.name = 'local';
|
||||
expectedServer.host = 'hostname';
|
||||
expectedServer.port = 9999;
|
||||
expectedServer.location = 'local';
|
||||
expectedServer.is_local = true;
|
||||
|
||||
service.getLocalServer('hostname', 9999).then(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user