import { ComponentFixture, TestBed } from '@angular/core/testing'; import { LostKeysComponent } from './lost-keys.component'; import { ApiService } from '../../../../shared/api.service'; import { MockApiService } from '../../../../../../mocks/services/mock.api.service'; import { HotToastService } from '@ngxpert/hot-toast'; describe('LostKeysComponent', () => { let component: LostKeysComponent; let fixture: ComponentFixture; beforeEach(async () => { await TestBed.configureTestingModule({ imports: [LostKeysComponent], providers: [ { provide: ApiService, useClass: MockApiService }, HotToastService ] }) .compileComponents(); fixture = TestBed.createComponent(LostKeysComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });