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