Permalink
Browse files

Moved angular modules in subfolders to use global module.

  • Loading branch information...
sburnicki committed Oct 4, 2018
1 parent 32f72d9 commit b94298eb2ef2dc4ed97c1f78c8ee76bd75b24e9c
Showing with 129 additions and 101 deletions.
  1. +1 −1 .gitignore
  2. +4 −4 frontend/angular.json
  3. +2 −2 frontend/src/app/app-routing.module.ts
  4. +4 −1 frontend/src/app/app.module.ts
  5. 0 frontend/src/app/{shared → }/enums/metric.enum.ts
  6. 0 frontend/src/app/{shared → }/enums/unit.enum.ts
  7. +7 −7 frontend/src/app/{shared/shared.module.spec.ts → global.module.spec.ts}
  8. +1 −11 frontend/src/app/{shared/shared.module.ts → global.module.ts}
  9. 0 frontend/src/app/{shared → }/models/global-osm-namespace.model.ts
  10. 0 frontend/src/app/{ → modules}/application-dashboard/application-dashboard.component.html
  11. 0 frontend/src/app/{ → modules}/application-dashboard/application-dashboard.component.scss
  12. +4 −4 frontend/src/app/{ → modules}/application-dashboard/application-dashboard.component.spec.ts
  13. 0 frontend/src/app/{ → modules}/application-dashboard/application-dashboard.component.ts
  14. 0 frontend/src/app/{ → modules}/application-dashboard/application-dashboard.module.spec.ts
  15. +4 −2 frontend/src/app/{ → modules}/application-dashboard/application-dashboard.module.ts
  16. 0 ... → modules}/application-dashboard/components/application-select/application-select.component.html
  17. 0 ... → modules}/application-dashboard/components/application-select/application-select.component.scss
  18. 0 ...modules}/application-dashboard/components/application-select/application-select.component.spec.ts
  19. 0 .../{ → modules}/application-dashboard/components/application-select/application-select.component.ts
  20. 0 frontend/src/app/{ → modules}/application-dashboard/components/csi-graph/csi-graph.calculator.ts
  21. 0 frontend/src/app/{ → modules}/application-dashboard/components/csi-graph/csi-graph.component.html
  22. +1 −1 frontend/src/app/{ → modules}/application-dashboard/components/csi-graph/csi-graph.component.scss
  23. +2 −2 frontend/src/app/{ → modules}/application-dashboard/components/csi-graph/csi-graph.component.spec.ts
  24. 0 frontend/src/app/{ → modules}/application-dashboard/components/csi-graph/csi-graph.component.ts
  25. 0 frontend/src/app/{ → modules}/application-dashboard/components/csi-info/csi-info.component.html
  26. +1 −1 frontend/src/app/{ → modules}/application-dashboard/components/csi-info/csi-info.component.scss
  27. +3 −3 frontend/src/app/{ → modules}/application-dashboard/components/csi-info/csi-info.component.spec.ts
  28. +3 −3 frontend/src/app/{ → modules}/application-dashboard/components/csi-info/csi-info.component.ts
  29. 0 frontend/src/app/{ → modules}/application-dashboard/components/csi-value/csi-value.component.html
  30. +1 −1 frontend/src/app/{ → modules}/application-dashboard/components/csi-value/csi-value.component.scss
  31. +8 −8 frontend/src/app/{ → modules}/application-dashboard/components/csi-value/csi-value.component.spec.ts
  32. +1 −1 frontend/src/app/{ → modules}/application-dashboard/components/csi-value/csi-value.component.ts
  33. 0 ...tend/src/app/{ → modules}/application-dashboard/components/page-metric/page-metric.component.html
  34. +1 −1 ...tend/src/app/{ → modules}/application-dashboard/components/page-metric/page-metric.component.scss
  35. +7 −7 ...d/src/app/{ → modules}/application-dashboard/components/page-metric/page-metric.component.spec.ts
  36. +1 −1 frontend/src/app/{ → modules}/application-dashboard/components/page-metric/page-metric.component.ts
  37. 0 frontend/src/app/{ → modules}/application-dashboard/components/page/page.component.html
  38. +1 −1 frontend/src/app/{ → modules}/application-dashboard/components/page/page.component.scss
  39. +2 −2 frontend/src/app/{ → modules}/application-dashboard/components/page/page.component.spec.ts
  40. +2 −2 frontend/src/app/{ → modules}/application-dashboard/components/page/page.component.ts
  41. 0 frontend/src/app/{ → modules}/application-dashboard/models/application.model.ts
  42. 0 frontend/src/app/{ → modules}/application-dashboard/models/csi-list.model.ts
  43. 0 frontend/src/app/{ → modules}/application-dashboard/models/csi.model.ts
  44. 0 frontend/src/app/{ → modules}/application-dashboard/models/page-csi.model.ts
  45. 0 frontend/src/app/{ → modules}/application-dashboard/models/page-metrics.model.ts
  46. 0 frontend/src/app/{ → modules}/application-dashboard/models/response-with-loading-state.model.ts
  47. 0 frontend/src/app/{ → modules}/application-dashboard/services/application-dashboard.service.spec.ts
  48. 0 frontend/src/app/{ → modules}/application-dashboard/services/application-dashboard.service.ts
  49. 0 frontend/src/app/{ → modules}/application-dashboard/utils/csi-utils.ts
  50. 0 ...tend/src/app/{ → modules}/job-threshold/components/threshold-group/threshold-group.component.html
  51. 0 ...tend/src/app/{ → modules}/job-threshold/components/threshold-group/threshold-group.component.scss
  52. +3 −3 ...d/src/app/{ → modules}/job-threshold/components/threshold-group/threshold-group.component.spec.ts
  53. 0 frontend/src/app/{ → modules}/job-threshold/components/threshold-group/threshold-group.component.ts
  54. 0 frontend/src/app/{ → modules}/job-threshold/components/threshold-row/threshold-row.component.html
  55. 0 frontend/src/app/{ → modules}/job-threshold/components/threshold-row/threshold-row.component.scss
  56. +3 −3 frontend/src/app/{ → modules}/job-threshold/components/threshold-row/threshold-row.component.spec.ts
  57. 0 frontend/src/app/{ → modules}/job-threshold/components/threshold-row/threshold-row.component.ts
  58. 0 frontend/src/app/{ → modules}/job-threshold/components/threshold/threshold.component.html
  59. 0 frontend/src/app/{ → modules}/job-threshold/components/threshold/threshold.component.scss
  60. +3 −3 frontend/src/app/{ → modules}/job-threshold/components/threshold/threshold.component.spec.ts
  61. 0 frontend/src/app/{ → modules}/job-threshold/components/threshold/threshold.component.ts
  62. 0 frontend/src/app/{ → modules}/job-threshold/job-threshold.component.html
  63. 0 frontend/src/app/{ → modules}/job-threshold/job-threshold.component.scss
  64. 0 frontend/src/app/{ → modules}/job-threshold/job-threshold.component.ts
  65. +8 −3 frontend/src/app/{ → modules}/job-threshold/job-threshold.module.ts
  66. 0 frontend/src/app/{ → modules}/job-threshold/models/measurand.model.ts
  67. 0 frontend/src/app/{ → modules}/job-threshold/models/measured-event.model.ts
  68. 0 frontend/src/app/{ → modules}/job-threshold/models/tested-page.model.ts
  69. 0 frontend/src/app/{ → modules}/job-threshold/models/threshold-for-job.model.ts
  70. 0 frontend/src/app/{ → modules}/job-threshold/models/threshold.model.ts
  71. 0 frontend/src/app/{ → modules}/job-threshold/models/unit.model.ts
  72. 0 frontend/src/app/{ → modules}/job-threshold/services/measurand.service.ts
  73. 0 frontend/src/app/{ → modules}/job-threshold/services/measured-event.service.ts
  74. 0 frontend/src/app/{ → modules}/job-threshold/services/threshold-rest.service.ts
  75. 0 frontend/src/app/{ → modules}/job-threshold/services/threshold.service.ts
  76. 0 frontend/src/app/{ → modules}/landing/landing.component.html
  77. +2 −2 frontend/src/app/{ → modules}/landing/landing.component.scss
  78. +1 −1 frontend/src/app/{ → modules}/landing/landing.component.spec.ts
  79. 0 frontend/src/app/{ → modules}/landing/landing.component.ts
  80. 0 frontend/src/app/{ → modules}/landing/landing.module.spec.ts
  81. +3 −3 frontend/src/app/{ → modules}/landing/landing.module.ts
  82. 0 frontend/src/app/{ → modules}/landing/models/application-list.model.ts
  83. +1 −1 frontend/src/app/{ → modules}/landing/models/application.model.ts
  84. 0 frontend/src/app/{ → modules}/landing/services/landing.service.spec.ts
  85. 0 frontend/src/app/{ → modules}/landing/services/landing.service.ts
  86. 0 ...pp/{ → modules}/page-comparison/components/page-comparison-row/page-comparison-row.component.html
  87. 0 .../app/{ → modules}/page-comparison/components/page-comparison-row/page-comparison-row.component.ts
  88. 0 frontend/src/app/{ → modules}/page-comparison/models/job-group-to-page-mapping.model.ts
  89. 0 frontend/src/app/{ → modules}/page-comparison/models/page-comparison-selection.model.ts
  90. 0 frontend/src/app/{ → modules}/page-comparison/models/page.model.ts
  91. 0 frontend/src/app/{ → modules}/page-comparison/page-comparison.adapter.ts
  92. 0 frontend/src/app/{ → modules}/page-comparison/page-comparison.component.html
  93. 0 frontend/src/app/{ → modules}/page-comparison/page-comparison.component.ts
  94. +8 −3 frontend/src/app/{ → modules}/page-comparison/page-comparison.module.ts
  95. 0 frontend/src/app/{ → modules}/page-comparison/services/job-group.service.spec.ts
  96. 0 frontend/src/app/{ → modules}/page-comparison/services/job-group.service.ts
  97. +17 −0 frontend/src/app/modules/shared.module.ts
  98. 0 frontend/src/app/{shared → }/services/grails-bridge.service.ts
  99. +4 −0 frontend/src/app/{shared → }/services/osm-lang.service.spec.ts
  100. 0 frontend/src/app/{shared → }/services/osm-lang.service.ts
  101. +4 −1 frontend/src/app/testing/shared-mocks.module.ts
  102. 0 frontend/src/app/{shared → }/utils/calculation.util.ts
  103. 0 frontend/src/app/{shared → }/utils/date.util.spec.ts
  104. 0 frontend/src/app/{shared → }/utils/date.util.ts
  105. +1 −4 grails-app/views/angularFrontend.gsp
  106. +1 −3 grails-app/views/job/_editOrCreate.gsp
  107. +1 −1 grails-app/views/job/_thresholdsTab.gsp
  108. +6 −0 grails-app/views/layouts/kickstart_osm.gsp
  109. +2 −4 grails-app/views/pageComparison/show.gsp
@@ -59,7 +59,7 @@ node_modules/
grails-app/assets/javascripts/frontend/
grails-app/assets/stylesheets/frontend/
grails-app/assets/frontend/
grails-app/assets/other/frontend
grails-app/assets/javascripts/lib/
grails-app/assets/stylesheets/lib/
# the bootstrap.js was not created by the plugin
@@ -31,10 +31,10 @@
],
"scripts": [],
"lazyModules": [
"src/app/page-comparison/page-comparison.module",
"src/app/application-dashboard/application-dashboard.module",
"src/app/job-threshold/job-threshold.module",
"src/app/landing/landing.module"
"src/app/modules/page-comparison/page-comparison.module",
"src/app/modules/application-dashboard/application-dashboard.module",
"src/app/modules/job-threshold/job-threshold.module",
"src/app/modules/landing/landing.module"
],
"vendorChunk": false,
"extractCss": true
@@ -6,11 +6,11 @@ import {NotFoundComponent} from './not-found.component';
const appRoutes: Routes = [
{
path: 'applicationDashboard',
loadChildren: './application-dashboard/application-dashboard.module#ApplicationDashboardModule'
loadChildren: './modules/application-dashboard/application-dashboard.module#ApplicationDashboardModule'
},
{
path: '',
loadChildren: './landing/landing.module#LandingModule'
loadChildren: './modules/landing/landing.module#LandingModule'
},
{path: '**', component: NotFoundComponent}];
@@ -4,12 +4,15 @@ import {AppRoutingModule} from "./app-routing.module";
import {APP_BASE_HREF} from '@angular/common';
import {NotFoundComponent} from "./not-found.component";
import {APP_COMPONENT_SELECTOR, AppComponent} from "./app.component";
import {GlobalModule} from "./global.module";
@NgModule({
declarations: [NotFoundComponent, AppComponent],
imports: [
BrowserModule, AppRoutingModule
BrowserModule,
AppRoutingModule,
GlobalModule
],
providers: [SystemJsNgModuleLoader,
{provide: APP_BASE_HREF, useValue: '/',}
@@ -1,10 +1,10 @@
import {SharedModule} from './shared.module';
import {TranslateService} from "@ngx-translate/core";
import {TestBed} from "@angular/core/testing";
import {OsmLangService} from "./services/osm-lang.service";
import {GlobalModule} from "./global.module";
describe('SharedModule', () => {
let sharedModule: SharedModule;
describe('GlobalModule', () => {
let globalModule: GlobalModule;
let osmLangServiceSpy = jasmine.createSpyObj('OsmLangService',
['getOsmLang']);
let translateServiceSpy = jasmine.createSpyObj('TranslateService',
@@ -17,7 +17,7 @@ describe('SharedModule', () => {
{provide: OsmLangService, useValue: osmLangServiceSpy}
]
});
sharedModule = new SharedModule(TestBed.get(OsmLangService), TestBed.get(TranslateService))
globalModule = new GlobalModule(TestBed.get(OsmLangService), TestBed.get(TranslateService))
});
it('sets en as default lang', () => {
@@ -30,13 +30,13 @@ describe('SharedModule', () => {
});
it('osm lang is used if it is within supported langs', () => {
osmLangServiceSpy.getOsmLang.and.returnValue('de');
sharedModule = new SharedModule(
globalModule = new GlobalModule(
TestBed.get(OsmLangService),
TestBed.get(TranslateService)
);
expect(getMostRecentCallsArgs(translateServiceSpy.use)).toEqual(['de']);
osmLangServiceSpy.getOsmLang.and.returnValue('en');
sharedModule = new SharedModule(
globalModule = new GlobalModule(
TestBed.get(OsmLangService),
TestBed.get(TranslateService)
);
@@ -46,7 +46,7 @@ describe('SharedModule', () => {
osmLangServiceSpy.getOsmLang.and.returnValue('not_supported_lang');
let defaultLang = 'en';
translateServiceSpy.getDefaultLang.and.returnValue(defaultLang)
sharedModule = new SharedModule(
globalModule = new GlobalModule(
TestBed.get(OsmLangService),
TestBed.get(TranslateService)
);
@@ -1,7 +1,5 @@
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {HttpClient, HttpClientModule} from "@angular/common/http";
import {FormsModule} from "@angular/forms";
import {GrailsBridgeService} from "./services/grails-bridge.service";
import {TranslateLoader, TranslateModule, TranslateService} from "@ngx-translate/core";
import {TranslateHttpLoader} from "@ngx-translate/http-loader";
@@ -15,9 +13,7 @@ export function createTranslateLoader(http: HttpClient) {
@NgModule({
imports: [
CommonModule,
HttpClientModule,
FormsModule,
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
@@ -31,14 +27,8 @@ export function createTranslateLoader(http: HttpClient) {
GrailsBridgeService,
OsmLangService
],
exports: [
CommonModule,
HttpClientModule,
FormsModule,
TranslateModule
]
})
export class SharedModule {
export class GlobalModule {
supportedLangs: string[] = ['en', 'de'];
constructor(private osmLangService: OsmLangService, private translateService: TranslateService) {
@@ -4,18 +4,21 @@ import {ApplicationDashboardComponent} from './application-dashboard.component';
import {PageComponent} from './components/page/page.component';
import {CsiValueComponent} from './components/csi-value/csi-value.component';
import {ApplicationSelectComponent} from './components/application-select/application-select.component';
import {SharedMocksModule} from '../testing/shared-mocks.module';
import {ApplicationDashboardService} from './services/application-dashboard.service';
import {CsiGraphComponent} from './components/csi-graph/csi-graph.component';
import {PageMetricComponent} from "./components/page-metric/page-metric.component";
import {CsiInfoComponent} from "./components/csi-info/csi-info.component";
import {SharedMocksModule} from "../../testing/shared-mocks.module";
describe('ApplicationDashboardComponent', () => {
let component: ApplicationDashboardComponent;
let fixture: ComponentFixture<ApplicationDashboardComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
SharedMocksModule
],
declarations: [
ApplicationDashboardComponent,
PageComponent,
@@ -28,9 +31,6 @@ describe('ApplicationDashboardComponent', () => {
providers: [
ApplicationDashboardService
],
imports: [
SharedMocksModule
]
})
.compileComponents();
}));
@@ -1,14 +1,15 @@
import {NgModule} from '@angular/core';
import {ApplicationDashboardComponent} from './application-dashboard.component';
import {ApplicationSelectComponent} from './components/application-select/application-select.component';
import {SharedModule} from "../shared/shared.module";
import {ApplicationDashboardService} from "./services/application-dashboard.service";
import {PageComponent} from './components/page/page.component';
import {RouterModule, Routes} from "@angular/router";
import {CsiValueComponent} from "./components/csi-value/csi-value.component";
import {CsiGraphComponent} from './components/csi-graph/csi-graph.component';
import {PageMetricComponent} from './components/page-metric/page-metric.component';
import {CsiInfoComponent} from "./components/csi-info/csi-info.component";
import {SharedModule} from "../shared.module";
import {HttpClientModule} from "@angular/common/http";
const DashboardRoutes: Routes = [
{path: '', component: ApplicationDashboardComponent},
@@ -17,8 +18,9 @@ const DashboardRoutes: Routes = [
@NgModule({
imports: [
RouterModule.forChild(DashboardRoutes),
SharedModule,
RouterModule.forChild(DashboardRoutes)
HttpClientModule
],
declarations: [
ApplicationDashboardComponent,
@@ -1,4 +1,4 @@
@import "../../../../styles/colors";
@import "../../../../../styles/colors";
osm-csi-graph {
.csi-graph-svg {
@@ -1,7 +1,7 @@
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {CsiGraphComponent} from './csi-graph.component';
import {SharedMocksModule} from "../../../testing/shared-mocks.module";
import {SharedMocksModule} from "../../../../testing/shared-mocks.module";
describe('CsiGraphComponent', () => {
let component: CsiGraphComponent;
@@ -12,7 +12,7 @@ describe('CsiGraphComponent', () => {
declarations: [CsiGraphComponent],
imports: [SharedMocksModule]
})
.compileComponents();
.compileComponents();
}));
beforeEach(() => {
@@ -1,4 +1,4 @@
@import "../../../../styles/colors";
@import "../../../../../styles/colors";
.info-container {
min-height: 175px;
@@ -2,9 +2,9 @@ import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {CsiInfoComponent} from './csi-info.component';
import {ApplicationDashboardService} from "../../services/application-dashboard.service";
import {SharedMocksModule} from "../../../testing/shared-mocks.module";
import {GrailsBridgeService} from "../../../shared/services/grails-bridge.service";
import {GlobalOsmNamespace} from "../../../shared/models/global-osm-namespace.model";
import {SharedMocksModule} from "../../../../testing/shared-mocks.module";
import {GrailsBridgeService} from "../../../../services/grails-bridge.service";
import {GlobalOsmNamespace} from "../../../../models/global-osm-namespace.model";
describe('CsiInfoComponent', () => {
let component: CsiInfoComponent;
@@ -2,7 +2,7 @@ import {Component, Input, OnChanges, SimpleChanges} from '@angular/core';
import {ApplicationCsiListDTO} from "../../models/csi-list.model";
import {ApplicationDTO} from "../../models/application.model";
import {ApplicationDashboardService} from "../../services/application-dashboard.service";
import {GrailsBridgeService} from "../../../shared/services/grails-bridge.service";
import {GrailsBridgeService} from "../../../../services/grails-bridge.service";
@Component({
selector: 'osm-csi-info',
@@ -25,7 +25,7 @@ export class CsiInfoComponent implements OnChanges {
this.setInformation();
}
private setInformation (): void {
private setInformation(): void {
if (!this.csiData.hasCsiConfiguration) {
this.errorCase = 'noCsiConfig';
this.infoText = 'frontend.de.iteratec.osm.applicationDashboard.csiInfo.noCsiConfig';
@@ -50,7 +50,7 @@ export class CsiInfoComponent implements OnChanges {
return
}
createCsiConfiguration () {
createCsiConfiguration() {
if (this.grailsBridgeService.globalOsmNamespace.user.loggedIn) {
this.applicationDashboardService.createCsiConfiguration(this.selectedApplication);
} else {
@@ -1,4 +1,4 @@
@import "../../../../styles/colors";
@import "../../../../../styles/colors";
osm-csi-value {
.csi-value-container {
@@ -4,7 +4,7 @@ import {CsiValueComponent} from './csi-value.component';
import {DebugElement} from '@angular/core';
import {By} from '@angular/platform-browser';
import {TranslateModule} from '@ngx-translate/core';
import {CalculationUtil} from '../../../shared/utils/calculation.util';
import {CalculationUtil} from '../../../../utils/calculation.util';
describe('CsiValueComponent', () => {
let component: CsiValueComponent;
@@ -17,7 +17,7 @@ describe('CsiValueComponent', () => {
TranslateModule.forRoot()
]
})
.compileComponents();
.compileComponents();
}));
beforeEach(() => {
@@ -32,7 +32,7 @@ describe('CsiValueComponent', () => {
expect(component).toBeTruthy();
});
it('should be described as CSI since no description is set', () =>{
it('should be described as CSI since no description is set', () => {
expect(component.description).toEqual('CSI');
const descriptionEl: HTMLElement = fixture.nativeElement.querySelector('.csi-value-description');
expect(descriptionEl.textContent).toEqual('CSI');
@@ -48,7 +48,7 @@ describe('CsiValueComponent', () => {
});
it('should be bad if csi value is bad', () => {
const badValue: number = 69.4;
component.csiValue = badValue;
component.csiValue = badValue;
component.ngOnInit();
expect(component.csiValueClass).toEqual('bad');
@@ -61,7 +61,7 @@ describe('CsiValueComponent', () => {
});
it('should be okay if csi value is okay', () => {
const okayValue: number = 70;
component.csiValue = okayValue;
component.csiValue = okayValue;
component.ngOnInit();
expect(component.csiValueClass).toEqual('okay');
@@ -74,7 +74,7 @@ describe('CsiValueComponent', () => {
});
it('should be good if csi value is good', () => {
const goodValue: number = 90;
component.csiValue = goodValue;
component.csiValue = goodValue;
component.ngOnInit();
expect(component.csiValueClass).toEqual('good');
@@ -85,7 +85,7 @@ describe('CsiValueComponent', () => {
expect(svgDe.classes.okay).toBeFalsy();
expect(svgDe.classes.good).toBeTruthy();
});
it('should be small by default', ()=>{
it('should be small by default', () => {
const expectedSize: number = 86;
const containerEl: HTMLElement = fixture.nativeElement.querySelector('svg');
const container: DebugElement = fixture.debugElement.query(By.css('.csi-value-container'));
@@ -94,7 +94,7 @@ describe('CsiValueComponent', () => {
expect(component.size).toBe(expectedSize);
expect(containerEl.clientWidth).toBe(expectedSize);
});
it('should be big if set', ()=>{
it('should be big if set', () => {
component.isBig = true;
component.ngOnInit();
const container: DebugElement = fixture.debugElement.query(By.css('.csi-value-container'));
@@ -3,7 +3,7 @@ import {arc} from 'd3-shape';
import {select} from 'd3-selection';
import {transition} from 'd3-transition';
import {interpolate} from 'd3-interpolate';
import {CalculationUtil} from '../../../shared/utils/calculation.util';
import {CalculationUtil} from '../../../../utils/calculation.util';
import {CsiUtils} from '../../utils/csi-utils';
import {TranslateService} from '@ngx-translate/core';
@@ -1,4 +1,4 @@
@import "../../../../styles/colors";
@import "../../../../../styles/colors";
.metric {
margin: 10px 0;
@@ -1,30 +1,30 @@
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {PageMetricComponent} from './page-metric.component';
import {SharedMocksModule} from "../../../testing/shared-mocks.module";
import {ApplicationDashboardService} from "../../services/application-dashboard.service";
import {By} from "@angular/platform-browser";
import {Unit} from "../../../shared/enums/unit.enum";
import {Unit} from "../../../../enums/unit.enum";
import {DebugElement} from "@angular/core";
import {Metric} from "../../../shared/enums/metric.enum";
import {Metric} from "../../../../enums/metric.enum";
import {SharedMocksModule} from "../../../../testing/shared-mocks.module";
describe('PageMetricComponent', () => {
let component: PageMetricComponent;
let fixture: ComponentFixture<PageMetricComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
PageMetricComponent
],
imports: [
SharedMocksModule
],
declarations: [
PageMetricComponent
],
providers: [
ApplicationDashboardService
]
})
.compileComponents();
.compileComponents();
}));
beforeEach(() => {
Oops, something went wrong.

0 comments on commit b94298e

Please sign in to comment.