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 { SettingsService } from '@core/services/settings.service'; import { LockComponent } from './lock.component'; describe('Pages: lock', () => { beforeEach(() => { TestBed.configureTestingModule({ schemas: [CUSTOM_ELEMENTS_SCHEMA], imports: [RouterTestingModule, SharedModule.forRoot()], declarations: [LockComponent], providers: [SettingsService] }); }); it('should create an instance', async(() => { const fixture = TestBed.createComponent(LockComponent); const comp = fixture.debugElement.componentInstance; expect(comp).toBeTruthy(); })); });