import { TestBed } from '@angular/core/testing' ; import { Storage } from '@ionic/storage' ; import { StorageMock } from '../../../../test-config/storage-mock' ; import { UnitHelper } from '../../../../test-config/unit-test-helper' ; import { VaultStorageService } from './storage.service' ; describe ( 'VaultStorageService' , ( ) => { beforeEach ( ( ) => { let unitHelper ; unitHelper = new UnitHelper ( ) ; TestBed . configureTestingModule ( unitHelper . testBed ( { providers : [ { provide : Storage , useClass : StorageMock } ] } ) ) . compileComponents ( ) . catch ( console . error ) ; } ) ; it ( 'should be created' , ( ) => { const service = TestBed . get ( VaultStorageService ) ; expect ( service ) . toBeTruthy ( ) ; } ) ; } ) ;