import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { IonicModule } from '@ionic/angular'; import { PreviewCameraPage } from './preview-camera.page'; describe('PreviewCameraPage', () => { let component: PreviewCameraPage; let fixture: ComponentFixture; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [ PreviewCameraPage ], imports: [IonicModule.forRoot()] }).compileComponents(); fixture = TestBed.createComponent(PreviewCameraPage); component = fixture.componentInstance; fixture.detectChanges(); })); it('should create', () => { expect(component).toBeTruthy(); }); });