From 918f388463d4afaf6429f6432bdd364b780f8d6c Mon Sep 17 00:00:00 2001 From: kumavis Date: Mon, 27 Mar 2017 11:32:00 -0700 Subject: [PATCH] explorer - fix ropsten explorer link tests --- test/unit/account-link-test.js | 14 +++++++------- test/unit/explorer-link-test.js | 9 +++++++-- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/test/unit/account-link-test.js b/test/unit/account-link-test.js index 5be3a072e..803a70f37 100644 --- a/test/unit/account-link-test.js +++ b/test/unit/account-link-test.js @@ -3,16 +3,16 @@ var linkGen = require('../../ui/lib/account-link') describe('account-link', function() { - it('adds morden prefix to morden test network', function() { - var result = linkGen('account', '2') - assert.notEqual(result.indexOf('morden'), -1, 'morden included') - assert.notEqual(result.indexOf('account'), -1, 'account included') - }) - - it('adds testnet prefix to ropsten test network', function() { + it('adds ropsten prefix to ropsten test network', function() { var result = linkGen('account', '3') assert.notEqual(result.indexOf('ropsten'), -1, 'ropsten included') assert.notEqual(result.indexOf('account'), -1, 'account included') }) + it('adds kovan prefix to kovan test network', function() { + var result = linkGen('account', '42') + assert.notEqual(result.indexOf('kovan'), -1, 'kovan included') + assert.notEqual(result.indexOf('account'), -1, 'account included') + }) + }) 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') }) })