import { inject , TestBed } from '@angular/core/testing' ; import { LOCAL_STORAGE , LocalStorageProvider , SESSION_STORAGE , SessionStorageProvider } from './nativeStorage' ; import { WebStorage } from './interfaces/webStorage' ; describe ( 'Core : NativeStorage' , ( ) => { beforeEach ( ( ) => { TestBed . configureTestingModule ( { providers : [ LocalStorageProvider , SessionStorageProvider ] } ) ; } ) ; it ( 'should provide the localStorage' , inject ( [ LOCAL_STORAGE ] , ( storage ) => { expect ( storage ) . toEqual ( localStorage ) ; } ) ) ; it ( 'should provide the sessionStorage' , inject ( [ SESSION_STORAGE ] , ( storage ) => { expect ( storage ) . toEqual ( sessionStorage ) ; } ) ) ; } ) ;