import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { MarkdownComponent, MarkdownService, MarkedOptions } from 'ngx-markdown'; import { HeroComponent, UsageWarningsComponent } from '@components'; import { MockComponent } from 'ng-mocks'; import { HeroUsagePageComponent } from './hero-usage.page'; describe('HeroUsagePageComponent', () => { let component: HeroUsagePageComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ HeroUsagePageComponent, MockComponent(HeroComponent), MarkdownComponent, UsageWarningsComponent, ], providers: [MarkdownService, MarkedOptions], schemas: [CUSTOM_ELEMENTS_SCHEMA], }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(HeroUsagePageComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('creates the component', () => { expect(component).toBeTruthy(); }); });