aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorEsteban MIno <efmino@uc.cl>2018-07-20 03:56:38 +0800
committerEsteban MIno <efmino@uc.cl>2018-07-20 03:56:38 +0800
commit3b97d816ffcaebc7606d4564ea95918f647ba413 (patch)
tree428d2f9a033b4de12620b21a5d4a7de0505b2399 /test/unit
parent2fffe098736e2461b9238c7dcd91f9ef3d61dcc1 (diff)
downloadtangerine-wallet-browser-3b97d816ffcaebc7606d4564ea95918f647ba413.tar
tangerine-wallet-browser-3b97d816ffcaebc7606d4564ea95918f647ba413.tar.gz
tangerine-wallet-browser-3b97d816ffcaebc7606d4564ea95918f647ba413.tar.bz2
tangerine-wallet-browser-3b97d816ffcaebc7606d4564ea95918f647ba413.tar.lz
tangerine-wallet-browser-3b97d816ffcaebc7606d4564ea95918f647ba413.tar.xz
tangerine-wallet-browser-3b97d816ffcaebc7606d4564ea95918f647ba413.tar.zst
tangerine-wallet-browser-3b97d816ffcaebc7606d4564ea95918f647ba413.zip
detect tokens when submit password and new account selected
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/app/controllers/detect-tokens-test.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/app/controllers/detect-tokens-test.js b/test/unit/app/controllers/detect-tokens-test.js
index 860ed7050..49492c543 100644
--- a/test/unit/app/controllers/detect-tokens-test.js
+++ b/test/unit/app/controllers/detect-tokens-test.js
@@ -28,7 +28,7 @@ describe('DetectTokensController', () => {
const controller = new DetectTokensController({preferences: preferences, network: network})
controller.isActive = true
- var stub = sandbox.stub(controller, 'exploreNewTokens')
+ var stub = sandbox.stub(controller, 'detectNewTokens')
clock.tick(1)
sandbox.assert.notCalled(stub)
@@ -51,7 +51,7 @@ describe('DetectTokensController', () => {
.withArgs('0x0D262e5dC4A06a0F1c90cE79C7a60C09DfC884E4').returns(true)
.withArgs('0xBC86727E770de68B1060C91f6BB6945c73e10388').returns(true)
- await controller.exploreNewTokens()
+ await controller.detectNewTokens()
sandbox.assert.notCalled(stub)
})
@@ -68,7 +68,7 @@ describe('DetectTokensController', () => {
.withArgs('0xBC86727E770de68B1060C91f6BB6945c73e10388')
.returns(preferences.addToken('0xbc86727e770de68b1060c91f6bb6945c73e10388', 'XNK', 18))
- await controller.exploreNewTokens()
+ await controller.detectNewTokens()
assert.deepEqual(preferences.store.getState().tokens, [{address: '0x0d262e5dc4a06a0f1c90ce79c7a60c09dfc884e4', decimals: 8, symbol: 'J8T'},
{address: '0xbc86727e770de68b1060c91f6bb6945c73e10388', decimals: 18, symbol: 'XNK'}])
})
@@ -87,7 +87,7 @@ describe('DetectTokensController', () => {
.withArgs('0xBC86727E770de68B1060C91f6BB6945c73e10388')
.returns(preferences.addToken('0xbc86727e770de68b1060c91f6bb6945c73e10388', 'XNK', 18))
- await controller.exploreNewTokens()
+ await controller.detectNewTokens()
assert.deepEqual(preferences.store.getState().tokens, [{address: '0x0d262e5dc4a06a0f1c90ce79c7a60c09dfc884e4', decimals: 8, symbol: 'J8T'},
{address: '0xbc86727e770de68b1060c91f6bb6945c73e10388', decimals: 18, symbol: 'XNK'}])
})