-
Notifications
You must be signed in to change notification settings - Fork 13
/
navigation.component.spec.ts
41 lines (36 loc) · 1.49 KB
/
navigation.component.spec.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
// TODO The indiviudal components should be mocked
import { NavigationComponent } from './navigation.component';
import { LinksComponent } from '../links/links.component';
import { LogoComponent } from '../logo/logo.component';
import { SearchBarComponent } from '../search-bar/search-bar.component';
import { FooterComponent } from '../footer/footer.component';
import { RouterTestingModule } from '@angular/router/testing';
import { MaterialModule } from 'src/app/Modules/app-material.module';
// TODO Sample content is needed and component compiled with it as input for <ng-content>
import { AboutComponent } from 'src/app/Pages/about/about.component';
describe('NavigationComponent', () => {
let component: NavigationComponent;
let fixture: ComponentFixture<NavigationComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
NavigationComponent,
LinksComponent,
LogoComponent,
SearchBarComponent,
FooterComponent,
],
imports: [MaterialModule, BrowserAnimationsModule, RouterTestingModule],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(NavigationComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should compile', () => {
expect(component).toBeTruthy();
});
});