aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-11-23 04:54:27 +0800
committerDan Finlay <dan@danfinlay.com>2016-11-23 04:54:27 +0800
commita67b4d7131b05256dbef69fc34cbae3944c1e43e (patch)
tree6ea8da51af72a2a680be6cebbf868c7b42a55e7a /test
parent0289444fcb032eca53fca591a10eb6743f2ff485 (diff)
downloadtangerine-wallet-browser-a67b4d7131b05256dbef69fc34cbae3944c1e43e.tar
tangerine-wallet-browser-a67b4d7131b05256dbef69fc34cbae3944c1e43e.tar.gz
tangerine-wallet-browser-a67b4d7131b05256dbef69fc34cbae3944c1e43e.tar.bz2
tangerine-wallet-browser-a67b4d7131b05256dbef69fc34cbae3944c1e43e.tar.lz
tangerine-wallet-browser-a67b4d7131b05256dbef69fc34cbae3944c1e43e.tar.xz
tangerine-wallet-browser-a67b4d7131b05256dbef69fc34cbae3944c1e43e.tar.zst
tangerine-wallet-browser-a67b4d7131b05256dbef69fc34cbae3944c1e43e.zip
Fix etherscan link generation test
Diffstat (limited to 'test')
-rw-r--r--test/unit/account-link-test.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/unit/account-link-test.js b/test/unit/account-link-test.js
index 39889b6be..4ea12e002 100644
--- a/test/unit/account-link-test.js
+++ b/test/unit/account-link-test.js
@@ -3,9 +3,15 @@ var linkGen = require('../../ui/lib/account-link')
describe('account-link', function() {
- it('adds testnet prefix to morden test network', function() {
+ it('adds morden prefix to morden test network', function() {
var result = linkGen('account', '2')
- assert.notEqual(result.indexOf('testnet'), -1, 'testnet injected')
+ assert.notEqual(result.indexOf('morden'), -1, 'testnet included')
+ assert.notEqual(result.indexOf('account'), -1, 'account included')
+ })
+
+ it('adds testnet prefix to ropsten test network', function() {
+ var result = linkGen('account', '3')
+ assert.notEqual(result.indexOf('testnet'), -1, 'testnet included')
assert.notEqual(result.indexOf('account'), -1, 'account included')
})