diff --git a/squarenotsquare/__mock__/mockKeyStore.js b/squarenotsquare/__mock__/mockKeyStore.js index c8fbb08..9bfa8e0 100644 --- a/squarenotsquare/__mock__/mockKeyStore.js +++ b/squarenotsquare/__mock__/mockKeyStore.js @@ -1,17 +1,31 @@ -export async function removeKey(key) { - return true; +class MockKeyStore { + async remove(key) { + return true; + } + + async set(key, value) { + return true; + } + + async get(key) { + if (key === 'isNull'){ + return null; + } else if (key === 'negTest') { + return '-1'; + } else { + return '1234567890'; + } + } } -export async function setKey(key, value) { - return true; -} +export default RNSecureKeyStore = new MockKeyStore(); -export async function getKey(key) { - if (key === 'isNull'){ - return null; - } else if (key === 'negTest') { - return '-1'; - } else { - return '1234567890'; - } -} +export const ACCESSIBLE = { + AFTER_FIRST_UNLOCK :'AccessibleAfterFirstUnlock', + AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY :'AccessibleAfterFirstUnlockThisDeviceOnly', + ALWAYS : 'AccessibleAlways', + ALWAYS_THIS_DEVICE_ONLY : 'AccessibleAlwaysThisDeviceOnly', + WHEN_PASSCODE_SET_THIS_DEVICE_ONLY :'AccessibleWhenPasscodeSetThisDeviceOnly', + WHEN_UNLOCKED : 'AccessibleWhenUnlocked', + WHEN_UNLOCKED_THIS_DEVICE_ONLY : 'AccessibleWhenUnlockedThisDeviceOnly', +} \ No newline at end of file