I am not sure why, but when I try to use IntelSecurityMock the properties data and storage use IntelSecurityStorage and IntelSecurityData instead of their mock classes.
_intelSecurity being EncryptedStorage's injected instance of IntelSecurity.
Logs:
LOG: IntelSecurityMock{storage: IntelSecurityStorage{}, data: IntelSecurityData{}}
WARN: 'Native: tried calling IntelSecurity.read, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator'
WARN: 'Native: tried calling IntelSecurity.read, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator'
LOG: ZoneAwarePromise{__zone_symbol__state: 0, __zone_symbol__value: 'cordova_not_available'}
LOG: ZoneAwarePromise{__zone_symbol__state: 0, __zone_symbol__value: 'cordova_not_available'}
I am not sure why, but when I try to use
IntelSecurityMock
the propertiesdata
andstorage
useIntelSecurityStorage
andIntelSecurityData
instead of their mock classes.Test Code:
_intelSecurity
beingEncryptedStorage
's injected instance ofIntelSecurity
.Logs: