aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorThomas <thomas.b.huang@gmail.com>2018-08-15 03:29:57 +0800
committerThomas <thomas.b.huang@gmail.com>2018-08-15 03:29:57 +0800
commitce645561fb77a299ba6f38999af111def00bc17c (patch)
treec75f31bfb0a21bc8c484f306297a1b45c8d12441 /test
parent974d623da20baa9a7bf88ffdb093f5934e90f4d1 (diff)
downloadtangerine-wallet-browser-ce645561fb77a299ba6f38999af111def00bc17c.tar
tangerine-wallet-browser-ce645561fb77a299ba6f38999af111def00bc17c.tar.gz
tangerine-wallet-browser-ce645561fb77a299ba6f38999af111def00bc17c.tar.bz2
tangerine-wallet-browser-ce645561fb77a299ba6f38999af111def00bc17c.tar.lz
tangerine-wallet-browser-ce645561fb77a299ba6f38999af111def00bc17c.tar.xz
tangerine-wallet-browser-ce645561fb77a299ba6f38999af111def00bc17c.tar.zst
tangerine-wallet-browser-ce645561fb77a299ba6f38999af111def00bc17c.zip
Remove commented out code for detect-token-test
Diffstat (limited to 'test')
-rw-r--r--test/unit/app/controllers/detect-tokens-test.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/unit/app/controllers/detect-tokens-test.js b/test/unit/app/controllers/detect-tokens-test.js
index d659d51df..e5539256e 100644
--- a/test/unit/app/controllers/detect-tokens-test.js
+++ b/test/unit/app/controllers/detect-tokens-test.js
@@ -67,8 +67,6 @@ describe('DetectTokensController', () => {
})
it('should not check tokens while in test network', async () => {
- // network.setProviderType('rinkeby')
- // const controller = new DetectTokensController({ preferences: preferences, network: network, keyringMemStore: keyringMemStore })
controller.isOpen = true
controller.isUnlocked = true
@@ -81,7 +79,6 @@ describe('DetectTokensController', () => {
})
it('should only check and add tokens while in main network', async () => {
- // network.setProviderType('mainnet')
const controller = new DetectTokensController({ preferences: preferences, network: network, keyringMemStore: keyringMemStore })
controller.isOpen = true
controller.isUnlocked = true
@@ -98,7 +95,6 @@ describe('DetectTokensController', () => {
})
it('should not detect same token while in main network', async () => {
- // network.setProviderType('mainnet')
preferences.addToken('0x0d262e5dc4a06a0f1c90ce79c7a60c09dfc884e4', 'J8T', 8)
const controller = new DetectTokensController({ preferences: preferences, network: network, keyringMemStore: keyringMemStore })
controller.isOpen = true
@@ -116,8 +112,6 @@ describe('DetectTokensController', () => {
})
it('should trigger detect new tokens when change address', async () => {
- // network.setProviderType('mainnet')
- // const controller = new DetectTokensController({ preferences: preferences, network: network, keyringMemStore: keyringMemStore })
controller.isOpen = true
controller.isUnlocked = true
var stub = sandbox.stub(controller, 'detectNewTokens')
@@ -126,8 +120,6 @@ describe('DetectTokensController', () => {
})
it('should trigger detect new tokens when submit password', async () => {
- // network.setProviderType('mainnet')
- // const controller = new DetectTokensController({ preferences: preferences, network: network, keyringMemStore: keyringMemStore })
controller.isOpen = true
controller.selectedAddress = '0x0'
var stub = sandbox.stub(controller, 'detectNewTokens')
@@ -136,8 +128,6 @@ describe('DetectTokensController', () => {
})
it('should not trigger detect new tokens when not open or not unlocked', async () => {
- // network.setProviderType('mainnet')
- // const controller = new DetectTokensController({ preferences: preferences, network: network, keyringMemStore: keyringMemStore })
controller.isOpen = true
controller.isUnlocked = false
var stub = sandbox.stub(controller, 'detectTokenBalance')