aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/network-contoller-test.js
diff options
context:
space:
mode:
authorThomas Huang <thomas.b.huang@gmail.com>2017-05-29 02:18:07 +0800
committerkumavis <aaron@kumavis.me>2017-06-13 02:08:32 +0800
commit13e667202835b082eb840ec2fb59511d687acdba (patch)
treed72e25b75b3332f200e1dfa6e76591d202dafeee /test/unit/network-contoller-test.js
parent8af41f1b0539e70cf4c6e1f4a9f4b10ad13656fc (diff)
downloadtangerine-wallet-browser-13e667202835b082eb840ec2fb59511d687acdba.tar
tangerine-wallet-browser-13e667202835b082eb840ec2fb59511d687acdba.tar.gz
tangerine-wallet-browser-13e667202835b082eb840ec2fb59511d687acdba.tar.bz2
tangerine-wallet-browser-13e667202835b082eb840ec2fb59511d687acdba.tar.lz
tangerine-wallet-browser-13e667202835b082eb840ec2fb59511d687acdba.tar.xz
tangerine-wallet-browser-13e667202835b082eb840ec2fb59511d687acdba.tar.zst
tangerine-wallet-browser-13e667202835b082eb840ec2fb59511d687acdba.zip
Linting
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')
})
})