aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/explorer-link-test.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-03-28 02:32:00 +0800
committerkumavis <aaron@kumavis.me>2017-03-28 02:32:00 +0800
commit918f388463d4afaf6429f6432bdd364b780f8d6c (patch)
tree86ad06f03a3cd914a3c2705a01261a78554fd02d /test/unit/explorer-link-test.js
parente4543bc104c8bb47904d0b7d5d12ce9ca7cec519 (diff)
downloadtangerine-wallet-browser-918f388463d4afaf6429f6432bdd364b780f8d6c.tar
tangerine-wallet-browser-918f388463d4afaf6429f6432bdd364b780f8d6c.tar.gz
tangerine-wallet-browser-918f388463d4afaf6429f6432bdd364b780f8d6c.tar.bz2
tangerine-wallet-browser-918f388463d4afaf6429f6432bdd364b780f8d6c.tar.lz
tangerine-wallet-browser-918f388463d4afaf6429f6432bdd364b780f8d6c.tar.xz
tangerine-wallet-browser-918f388463d4afaf6429f6432bdd364b780f8d6c.tar.zst
tangerine-wallet-browser-918f388463d4afaf6429f6432bdd364b780f8d6c.zip
explorer - fix ropsten explorer link tests
Diffstat (limited to 'test/unit/explorer-link-test.js')
-rw-r--r--test/unit/explorer-link-test.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/unit/explorer-link-test.js b/test/unit/explorer-link-test.js
index 8aa58bff9..4f0230c2c 100644
--- a/test/unit/explorer-link-test.js
+++ b/test/unit/explorer-link-test.js
@@ -3,9 +3,14 @@ var linkGen = require('../../ui/lib/explorer-link')
describe('explorer-link', function() {
- it('adds testnet prefix to morden test network', function() {
+ it('adds ropsten prefix to ropsten test network', function() {
var result = linkGen('hash', '3')
- assert.notEqual(result.indexOf('testnet'), -1, 'testnet injected')
+ assert.notEqual(result.indexOf('ropsten'), -1, 'ropsten injected')
+ })
+
+ it('adds kovan prefix to kovan test network', function() {
+ var result = linkGen('hash', '42')
+ assert.notEqual(result.indexOf('kovan'), -1, 'kovan injected')
})
})