import { TestBed, async } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { SharedModule } from '@shared/shared.module'; import { TableFullComponent } from './full.component'; import { RandomUserService } from '../randomUser.service'; describe('Component: TableFull', () => { beforeEach(() => { TestBed.configureTestingModule({ schemas: [CUSTOM_ELEMENTS_SCHEMA], imports: [RouterTestingModule, SharedModule.forRoot()], declarations: [TableFullComponent], providers: [RandomUserService] }); }); it('should create an instance', async(() => { const fixture = TestBed.createComponent(TableFullComponent); const comp = fixture.debugElement.componentInstance; expect(comp).toBeTruthy(); })); });