aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-11-23 02:23:01 +0800
committerGitHub <noreply@github.com>2016-11-23 02:23:01 +0800
commit2df6ebbd10b2d3bf03d82043b63b367548574ed9 (patch)
treee9c0ba4d62b95012ef56bf9340cef5017dd09802 /test/unit
parent1142d7104821b0ee51b46ef27042ad53b7309e8d (diff)
parente2a9e1cd4ab6329df3de94d136ccb7e912945c48 (diff)
downloadtangerine-wallet-browser-2df6ebbd10b2d3bf03d82043b63b367548574ed9.tar.gz
tangerine-wallet-browser-2df6ebbd10b2d3bf03d82043b63b367548574ed9.tar.zst
tangerine-wallet-browser-2df6ebbd10b2d3bf03d82043b63b367548574ed9.zip
Merge pull request #855 from MetaMask/i834-RopstenLinks
Add ropsten link support
Diffstat (limited to 'test/unit')
-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')
})