import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core' ; import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { IonicStorageModule } from '@ionic/storage' ; import { Camera } from '@ionic-native/camera/ngx' ; import { Tab2Page } from './tab2.page' ; describe ( 'Tab2Page' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { imports : [ IonicStorageModule . forRoot ( ) ] , providers : [ Camera ] , declarations : [ Tab2Page ] , schemas : [ CUSTOM_ELEMENTS_SCHEMA ] , } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( Tab2Page ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;