import { ComponentFixture, TestBed } from '@angular/core/testing'; import { AuthService } from '@auth0/auth0-angular'; import { HomeComponent } from './home.component'; describe('HomeComponent', () => { let component: HomeComponent; let fixture: ComponentFixture; let authServiceSpy: unknown; beforeEach(() => { authServiceSpy = jasmine.createSpyObj('AuthService', ['loginWithRedirect']); TestBed.configureTestingModule({ declarations: [], providers: [ { provide: AuthService, useValue: authServiceSpy, }, ], }).compileComponents(); fixture = TestBed.createComponent(HomeComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });