|
| 1 | +import {async, TestBed} from '@angular/core/testing'; |
| 2 | +import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core'; |
| 3 | +import {TranslateModule} from '@ngx-translate/core'; |
| 4 | +import {APP_CONFIG, AppConfig} from '../../config/app.config'; |
| 5 | +import {HeroService} from '../../heroes/shared/hero.service'; |
| 6 | +import {MaterialModule} from '../../shared/modules/material.module'; |
| 7 | +import {ProgressBarService} from '../../shared/services/progress-bar.service'; |
| 8 | +import {TestsModule} from '../../shared/modules/tests.module'; |
| 9 | +import {Error404Component} from './error-404.component'; |
| 10 | + |
| 11 | +fdescribe('Error404Component', () => { |
| 12 | + let fixture; |
| 13 | + let component; |
| 14 | + let progressBarService; |
| 15 | + |
| 16 | + beforeEach(async(() => { |
| 17 | + TestBed.configureTestingModule({ |
| 18 | + imports: [ |
| 19 | + TestsModule, |
| 20 | + TranslateModule.forRoot(), |
| 21 | + MaterialModule |
| 22 | + ], |
| 23 | + declarations: [ |
| 24 | + Error404Component |
| 25 | + ], |
| 26 | + providers: [ |
| 27 | + {provide: APP_CONFIG, useValue: AppConfig}, |
| 28 | + HeroService, |
| 29 | + ProgressBarService |
| 30 | + ], |
| 31 | + schemas: [CUSTOM_ELEMENTS_SCHEMA] |
| 32 | + }).compileComponents(); |
| 33 | + |
| 34 | + fixture = TestBed.createComponent(Error404Component); |
| 35 | + component = fixture.debugElement.componentInstance; |
| 36 | + progressBarService = TestBed.get(ProgressBarService); |
| 37 | + })); |
| 38 | + |
| 39 | + it('should create nav component', (() => { |
| 40 | + expect(component).toBeTruthy(); |
| 41 | + })); |
| 42 | +}); |
0 commit comments