Skip to content

Commit

Permalink
Fix new unit test failure #3
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox committed Apr 23, 2019
1 parent faf5337 commit 3c12f2f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { DatePipe } from '@angular/common';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { CloudFoundrySpaceAppsComponent } from './cloud-foundry-space-apps.component';
import { BaseTestModules } from '../../../../../../../../test-framework/cloud-foundry-endpoint-service.helper';
import { DatePipe } from '@angular/common';
import { CloudFoundrySpaceService } from '../../../../../services/cloud-foundry-space.service';
import { CloudFoundrySpaceServiceMock } from '../../../../../../../../test-framework/cloud-foundry-space.service.mock';
import { CloudFoundrySpaceService } from '../../../../../services/cloud-foundry-space.service';
import { CloudFoundrySpaceAppsComponent } from './cloud-foundry-space-apps.component';

describe('CloudFoundrySpaceAppsComponent', () => {
let component: CloudFoundrySpaceAppsComponent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { DatePipe } from '@angular/common';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { BaseTestModules } from '../../../../../../../../test-framework/cloud-foundry-endpoint-service.helper';
import { CloudFoundrySpaceServiceMock } from '../../../../../../../../test-framework/cloud-foundry-space.service.mock';
import { CloudFoundrySpaceService } from '../../../../../services/cloud-foundry-space.service';
import { CloudFoundrySpaceRoutesComponent } from './cloud-foundry-space-routes.component';
import { DatePipe } from '@angular/common';

describe('CloudFoundrySpaceRoutesComponent', () => {
let component: CloudFoundrySpaceRoutesComponent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ export class CloudFoundryOrganizationServiceMock {
});
apps$ = observableOf([]);
appCount$ = observableOf(0);
serviceInstancesCount$ = observableOf(0);
userProvidedServiceInstancesCount$ = observableOf(0);
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ export class CloudFoundrySpaceServiceMock {
allowSsh$ = observableOf('false');
apps$ = observableOf([]);
appCount$ = observableOf(0);
serviceInstancesCount$ = observableOf(0);
userProvidedServiceInstancesCount$ = observableOf(0);

}

export const getCfSpaceServiceMock = {
Expand Down

0 comments on commit 3c12f2f

Please sign in to comment.