aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-11-17 08:54:55 +0800
committerFrankie <frankie.diamond@gmail.com>2018-11-17 08:54:55 +0800
commit1988e1e96b09a47ad5428083bb2ed38cb2d7e0a8 (patch)
treeb86a7ebbafd300151f12816c19999bb890ebe034 /test
parentce147bf6d8431f4f0cb5b4de46a5af9628b3e9e2 (diff)
downloadtangerine-wallet-browser-1988e1e96b09a47ad5428083bb2ed38cb2d7e0a8.tar
tangerine-wallet-browser-1988e1e96b09a47ad5428083bb2ed38cb2d7e0a8.tar.gz
tangerine-wallet-browser-1988e1e96b09a47ad5428083bb2ed38cb2d7e0a8.tar.bz2
tangerine-wallet-browser-1988e1e96b09a47ad5428083bb2ed38cb2d7e0a8.tar.lz
tangerine-wallet-browser-1988e1e96b09a47ad5428083bb2ed38cb2d7e0a8.tar.xz
tangerine-wallet-browser-1988e1e96b09a47ad5428083bb2ed38cb2d7e0a8.tar.zst
tangerine-wallet-browser-1988e1e96b09a47ad5428083bb2ed38cb2d7e0a8.zip
ESLint fixes (#5775)
* eslint . --fix * Upgrade all ESLint warnings to errors
Diffstat (limited to 'test')
-rw-r--r--test/unit/app/controllers/preferences-controller-test.js6
-rw-r--r--test/unit/ui/app/reducers/metamask.spec.js2
2 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/app/controllers/preferences-controller-test.js b/test/unit/app/controllers/preferences-controller-test.js
index 473f22f8b..67d1875c1 100644
--- a/test/unit/app/controllers/preferences-controller-test.js
+++ b/test/unit/app/controllers/preferences-controller-test.js
@@ -515,14 +515,14 @@ describe('preferences controller', function () {
it('should add custom RPC url to state', function () {
preferencesController.addToFrequentRpcList('rpc_url', 1)
preferencesController.addToFrequentRpcList('http://localhost:8545', 1)
- assert.deepEqual(preferencesController.store.getState().frequentRpcListDetail, [{ rpcUrl: 'rpc_url', chainId: 1, ticker: 'ETH', nickname: '' }] )
+ assert.deepEqual(preferencesController.store.getState().frequentRpcListDetail, [{ rpcUrl: 'rpc_url', chainId: 1, ticker: 'ETH', nickname: '' }])
preferencesController.addToFrequentRpcList('rpc_url', 1)
- assert.deepEqual(preferencesController.store.getState().frequentRpcListDetail, [{ rpcUrl: 'rpc_url', chainId: 1, ticker: 'ETH', nickname: '' }] )
+ assert.deepEqual(preferencesController.store.getState().frequentRpcListDetail, [{ rpcUrl: 'rpc_url', chainId: 1, ticker: 'ETH', nickname: '' }])
})
it('should remove custom RPC url from state', function () {
preferencesController.addToFrequentRpcList('rpc_url', 1)
- assert.deepEqual(preferencesController.store.getState().frequentRpcListDetail, [{ rpcUrl: 'rpc_url', chainId: 1, ticker: 'ETH', nickname: '' }] )
+ assert.deepEqual(preferencesController.store.getState().frequentRpcListDetail, [{ rpcUrl: 'rpc_url', chainId: 1, ticker: 'ETH', nickname: '' }])
preferencesController.removeFromFrequentRpcList('other_rpc_url')
preferencesController.removeFromFrequentRpcList('http://localhost:8545')
preferencesController.removeFromFrequentRpcList('rpc_url')
diff --git a/test/unit/ui/app/reducers/metamask.spec.js b/test/unit/ui/app/reducers/metamask.spec.js
index e1a50eef2..502e7ef33 100644
--- a/test/unit/ui/app/reducers/metamask.spec.js
+++ b/test/unit/ui/app/reducers/metamask.spec.js
@@ -5,7 +5,7 @@ import * as actions from '../../../../../ui/app/actions'
describe('MetaMask Reducers', () => {
it('init state', () => {
- const initState = reduceMetamask({metamask:{}}, {})
+ const initState = reduceMetamask({metamask: {}}, {})
assert(initState)
})