forked from novasamatech/parity-signer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from paritytech/standard
Standard
- Loading branch information
Showing
35 changed files
with
303 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
language: node_js | ||
node_js: | ||
- 6 | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
|
||
install: true | ||
|
||
script: | ||
- npm run lint | ||
- npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import React from 'react'; | ||
import React from 'react' | ||
import 'react-native' | ||
import App from '../src/components/App' | ||
|
||
// Note: test renderer must be required after react-native. | ||
import renderer from 'react-test-renderer'; | ||
import renderer from 'react-test-renderer' | ||
|
||
it('renders correctly', () => { | ||
const tree = renderer.create( | ||
<App/> | ||
<App /> | ||
) | ||
}); | ||
|
||
expect(tree).toBeTruthy() | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import React from 'react'; | ||
import React from 'react' | ||
import 'react-native' | ||
import App from '../src/components/App' | ||
|
||
// Note: test renderer must be required after react-native. | ||
import renderer from 'react-test-renderer'; | ||
import renderer from 'react-test-renderer' | ||
|
||
it('renders correctly', () => { | ||
const tree = renderer.create( | ||
<App/> | ||
<App /> | ||
) | ||
}); | ||
|
||
expect(tree).toBeTruthy() | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
'use strict' | ||
|
||
import { ADD_ACCOUNT, SELECT_ACCOUNT, DELETE_ACCOUNT, SET_PIN, CONFIRM_PIN, SET_ACCOUNTS } from '../constants/AccountActions' | ||
import { ADD_ACCOUNT, SELECT_ACCOUNT, DELETE_ACCOUNT, SET_PIN, SET_ACCOUNTS } from '../constants/AccountActions' | ||
|
||
export function addAccount(account) { | ||
export function addAccount (account) { | ||
return { | ||
type: ADD_ACCOUNT, | ||
account, | ||
account | ||
} | ||
} | ||
|
||
export function selectAccount(account) { | ||
export function selectAccount (account) { | ||
return { | ||
type: SELECT_ACCOUNT, | ||
account, | ||
account | ||
} | ||
} | ||
|
||
export function deleteAccount(account) { | ||
export function deleteAccount (account) { | ||
return { | ||
type: DELETE_ACCOUNT, | ||
account, | ||
account | ||
} | ||
} | ||
|
||
export function setPin(pin) { | ||
export function setPin (pin) { | ||
return { | ||
type: SET_PIN, | ||
pin, | ||
pin | ||
} | ||
} | ||
|
||
export function setAccounts(accounts) { | ||
export function setAccounts (accounts) { | ||
return { | ||
type: SET_ACCOUNTS, | ||
accounts, | ||
accounts | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.