Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
spersico committed Aug 7, 2019
1 parent 42d46c0 commit d74421a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/wallet-ui/src/store/test-utils/ethereum.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default class EthereumMock implements EthereumGlobal {
forceFailOnGetAllChannels: false
};

constructor(private readonly events: { [key: string]: Function[] } = {}) { }
constructor(private readonly events: { [key: string]: Function[] } = {}) {}

async enable() {
if (this.mockBehaviors.failOnEnable) {
Expand Down Expand Up @@ -159,9 +159,9 @@ export default class EthereumMock implements EthereumGlobal {
[this.mockBehaviors.nodeAddressFromUserMock
? FREE_BALANCE_MOCK_ADDRESS_FROM_USER_MOCK
: FREE_BALANCE_MOCK_ADDRESS]: this.mockBehaviors
.forceRetryOnWaitForFunds
? Zero
: FREE_BALANCE_MOCK_AMOUNT,
.forceRetryOnWaitForFunds
? Zero
: FREE_BALANCE_MOCK_AMOUNT,
[COUNTERPARTY_FREE_BALANCE_MOCK_ADDRESS]: this.mockBehaviors
.forceRetryOnWaitForFunds
? Zero
Expand Down
9 changes: 7 additions & 2 deletions packages/wallet-ui/src/store/test-utils/nodeTokenClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,17 @@ export const NETWORK_KOVAN_TOKENS: AssetType[] = [
}
];

export const USER_KOVAN_TOKENS_MOCK = (counterfactualBalance = Zero): AssetType[] => [
export const USER_KOVAN_TOKENS_MOCK = (
counterfactualBalance = Zero
): AssetType[] => [
{
counterfactualBalance,
tokenAddress: "0x0000000000000000000000000000000000000000",
name: "Ethereum",
shortName: "ETH"
},
...NETWORK_KOVAN_TOKENS.slice(1).map(token => ({ ...token, counterfactualBalance: undefined }))
...NETWORK_KOVAN_TOKENS.slice(1).map(token => ({
...token,
counterfactualBalance: undefined
}))
];
3 changes: 2 additions & 1 deletion packages/wallet-ui/src/store/user/user.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ describe("Store > User", () => {
status: ActionType.WalletSetNodeTokens
},
{
user: {}, error: {},
user: {},
error: {},
tokenAddresses: NETWORK_KOVAN_TOKENS,
status: ActionType.WalletSetBalance
},
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-ui/src/utils/nodeTokenClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const getTokens = async (
}))
);
} catch (error) {
console.error('error while getting tokens', error.message)
console.error("error while getting tokens", error.message);
return [defaultToken];
}
};

0 comments on commit d74421a

Please sign in to comment.