Unverified Commit f6309069 authored by Tomasz Drwięga's avatar Tomasz Drwięga
Browse files

Adding travis yml.

parent 976be50a
---
language: node_js
node_js:
- 6
cache:
directories:
- node_modules
install: true
script:
- npm run lint
- npm run test
......@@ -14,6 +14,12 @@ export const saveAccount = (account) =>
export const saveAccounts = (accounts) => accounts.forEach(saveAccount)
export const loadAccounts = () => SecureStorage.getAllItems(accountsStore).then(
accounts => Object.values(accounts).map(account => JSON.parse(account))
)
export const loadAccounts = () => {
if (!SecureStorage) {
return Promise.resolve([])
}
SecureStorage.getAllItems(accountsStore).then(
accounts => Object.values(accounts).map(account => JSON.parse(account))
)
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment