import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { UserProfileComponent } from './user-profile.component'; import { UserProfileModule } from './user-profile.module'; import { AppRoutingModule } from '../app-routing.module'; describe('UserProfileComponent', () => { let component: UserProfileComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ imports: [UserProfileModule, AppRoutingModule] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(UserProfileComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should be created', () => { expect(component).toBeTruthy(); }); });