import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { UserProfileComponent } from './user-profile.component'; describe('UserProfileComponent', () => { let component: UserProfileComponent; let fixture: ComponentFixture; beforeEach( waitForAsync(() => { TestBed.configureTestingModule({ declarations: [UserProfileComponent], }).compileComponents(); }) ); beforeEach(() => { fixture = TestBed.createComponent(UserProfileComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });