Skip to content

Commit

Permalink
fix: fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 18, 2020
1 parent 73cd226 commit eecc2f0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export class LedgeTechRadarComponent implements OnInit, AfterViewInit, OnChanges
items
});
}
console.log(this.trData);
}

ngOnChanges(changes: SimpleChanges): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class LedgeDevProcessComponent implements OnInit {
}

ngOnInit(): void {
console.log(this.data);

}

getImageUrl(name: string) {
Expand Down
22 changes: 19 additions & 3 deletions src/app/presentation/think-tank/think-tank.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,32 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { ThinkTankComponent } from './think-tank.component';
import { SharedModule } from '../../shared/shared.module';
import { RouterTestingModule } from '@angular/router/testing';
import {
TranslateFakeLoader,
TranslateLoader,
TranslateModule,
} from '@ngx-translate/core';

describe('ThinkTankComponent', () => {
let component: ThinkTankComponent;
let fixture: ComponentFixture<ThinkTankComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ThinkTankComponent ]
})
.compileComponents();
imports: [
SharedModule,
RouterTestingModule,
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useClass: TranslateFakeLoader,
},
}),
],
declarations: [ThinkTankComponent],
}).compileComponents();
}));

beforeEach(() => {
Expand Down

0 comments on commit eecc2f0

Please sign in to comment.