aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/network-contoller-test.js
diff options
context:
space:
mode:
authorFrankie <frankie.diamond@gmail.com>2017-06-13 06:09:53 +0800
committerGitHub <noreply@github.com>2017-06-13 06:09:53 +0800
commit3da887e56ef6819aa0cb0f9a19c33025d80bca35 (patch)
treecb60e1925a37c2dc4407531f319cdbda4d9ff126 /test/unit/network-contoller-test.js
parentb712e7ce6498b2d8d26f506f40a1e00ef1b7462c (diff)
parent33a32bb06be408d197d2f7784d9c1a9e04280fda (diff)
downloadtangerine-wallet-browser-3da887e56ef6819aa0cb0f9a19c33025d80bca35.tar.gz
tangerine-wallet-browser-3da887e56ef6819aa0cb0f9a19c33025d80bca35.tar.zst
tangerine-wallet-browser-3da887e56ef6819aa0cb0f9a19c33025d80bca35.zip
Merge branch 'master' into qrPrefix
Diffstat (limited to 'test/unit/network-contoller-test.js')
-rw-r--r--test/unit/network-contoller-test.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/network-contoller-test.js b/test/unit/network-contoller-test.js
index 76452b303..0c7ee9d70 100644
--- a/test/unit/network-contoller-test.js
+++ b/test/unit/network-contoller-test.js
@@ -27,7 +27,7 @@ describe('# Network Controller', function () {
})
})
describe('network', function () {
- describe('#provider', function() {
+ describe('#provider', function () {
it('provider should be updatable without reassignment', function () {
networkController.initializeProvider(networkController.providerInit)
const provider = networkController.provider
@@ -37,7 +37,7 @@ describe('# Network Controller', function () {
})
describe('#getNetworkState', function () {
it('should return loading when new', function () {
- let networkState = networkController.getNetworkState()
+ const networkState = networkController.getNetworkState()
assert.equal(networkState, 'loading', 'network is loading')
})
})
@@ -45,14 +45,14 @@ describe('# Network Controller', function () {
describe('#setNetworkState', function () {
it('should update the network', function () {
networkController.setNetworkState(1)
- let networkState = networkController.getNetworkState()
+ const networkState = networkController.getNetworkState()
assert.equal(networkState, 1, 'network is 1')
})
})
describe('#getRpcAddressForType', function () {
it('should return the right rpc address', function () {
- let rpcTarget = networkController.getRpcAddressForType('mainnet')
+ const rpcTarget = networkController.getRpcAddressForType('mainnet')
assert.equal(rpcTarget, 'https://mainnet.infura.io/metamask', 'returns the right rpcAddress')
})
})