Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Improve unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox committed Jun 11, 2020
1 parent 2e3d6ef commit 955c6ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions custom-src/frontend/app/custom/helm/helm-testing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { RouterTestingModule } from '@angular/router/testing';
import { CATALOGUE_ENTITIES, EntityCatalogFeatureModule } from '../../../../store/src/entity-catalog.module';
import { entityCatalog, TestEntityCatalog } from '../../../../store/src/entity-catalog/entity-catalog';
import { createBasicStoreModule } from '../../../../store/testing/public-api';
import { AppTestModule } from '../../../test-framework/core-test.helper';
import { generateStratosEntities } from '../../base-entity-types';
import { CoreModule } from '../../core/core.module';
import { SharedModule } from '../../shared/shared.module';
Expand Down Expand Up @@ -54,6 +55,7 @@ export const HelmReleaseGuidMock = {
};

export const HelmBaseTestModules = [
AppTestModule,
HelmTestingModule,
RouterTestingModule,
CoreModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { RouterTestingModule } from '@angular/router/testing';
import { CATALOGUE_ENTITIES, EntityCatalogFeatureModule } from '../../../../store/src/entity-catalog.module';
import { entityCatalog, TestEntityCatalog } from '../../../../store/src/entity-catalog/entity-catalog';
import { createBasicStoreModule } from '../../../../store/testing/public-api';
import { AppTestModule } from '../../../test-framework/core-test.helper';
import { generateStratosEntities } from '../../base-entity-types';
import { CoreModule } from '../../core/core.module';
import { SharedModule } from '../../shared/shared.module';
Expand Down Expand Up @@ -34,6 +35,7 @@ import { HelmReleaseHelperService } from './workloads/release/tabs/helm-release-
export class KubernetesTestingModule { }

export const KubernetesBaseTestModules = [
AppTestModule,
KubernetesTestingModule,
RouterTestingModule,
CoreModule,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { TitleCasePipe } from '@angular/common';
import { Component, Input } from '@angular/core';
import { Store } from '@ngrx/store';
import * as moment from 'moment';
import { of } from 'rxjs';
import { filter, map } from 'rxjs/operators';

import { AppState } from '../../../../../../../store/src/app-state';
import { BooleanIndicatorType } from '../../../../../shared/components/boolean-indicator/boolean-indicator.component';
import { ITableListDataSource } from '../../../../../shared/components/list/data-sources-controllers/list-data-source-types';
import {
Expand Down Expand Up @@ -55,7 +53,6 @@ export class KubernetesPodContainersComponent extends CardCell<KubernetesPod> {
}

constructor(
private store: Store<AppState>,
private titleCase: TitleCasePipe,
) {
super();
Expand Down

0 comments on commit 955c6ff

Please sign in to comment.