import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ChildrenOutletContexts, RouterOutlet } from '@angular/router'; import { MockComponent } from 'ng-mocks'; import { HeroComponent } from '@components'; import { PackageNamePipe } from '@pipes'; import { TypographyPageComponent } from './typography.page'; describe('TypographyPageComponent', () => { let component: TypographyPageComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ MockComponent(HeroComponent), PackageNamePipe, RouterOutlet, TypographyPageComponent, ], providers: [ ChildrenOutletContexts, ], }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(TypographyPageComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('creates the component', () => { expect(component).toBeTruthy(); }); });