Sever service tests fixed

This commit is contained in:
Piotr Pekala 2019-03-08 00:06:55 -08:00
parent d933135912
commit 4728064675
4 changed files with 5 additions and 2 deletions

View File

@ -27,7 +27,7 @@ export class MockedDockerService {
}
}
xdescribe('AddDockerTemplateComponent', () => {
describe('AddDockerTemplateComponent', () => {
let component: AddDockerTemplateComponent;
let fixture: ComponentFixture<AddDockerTemplateComponent>;

View File

@ -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>

View File

@ -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) => {

View File

@ -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(() => {