aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/account-link-test.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-08-23 11:06:59 +0800
committerDan Finlay <dan@danfinlay.com>2016-08-23 11:06:59 +0800
commit49ab51d8251a403e242de179541fddaa0d76031e (patch)
tree1657397d981c0def2bf8980bc365853f2b1be3a6 /test/unit/account-link-test.js
parenta9b53530b64cbe33f85d62c8042a72dd41353f26 (diff)
parent9dad3a5917308cb6d9ee56aa183298b8eaad1c5f (diff)
downloadtangerine-wallet-browser-49ab51d8251a403e242de179541fddaa0d76031e.tar
tangerine-wallet-browser-49ab51d8251a403e242de179541fddaa0d76031e.tar.gz
tangerine-wallet-browser-49ab51d8251a403e242de179541fddaa0d76031e.tar.bz2
tangerine-wallet-browser-49ab51d8251a403e242de179541fddaa0d76031e.tar.lz
tangerine-wallet-browser-49ab51d8251a403e242de179541fddaa0d76031e.tar.xz
tangerine-wallet-browser-49ab51d8251a403e242de179541fddaa0d76031e.tar.zst
tangerine-wallet-browser-49ab51d8251a403e242de179541fddaa0d76031e.zip
Merge branch 'master' into PopupNotifications
Diffstat (limited to 'test/unit/account-link-test.js')
-rw-r--r--test/unit/account-link-test.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit/account-link-test.js b/test/unit/account-link-test.js
new file mode 100644
index 000000000..39889b6be
--- /dev/null
+++ b/test/unit/account-link-test.js
@@ -0,0 +1,12 @@
+var assert = require('assert')
+var linkGen = require('../../ui/lib/account-link')
+
+describe('account-link', function() {
+
+ it('adds testnet prefix to morden test network', function() {
+ var result = linkGen('account', '2')
+ assert.notEqual(result.indexOf('testnet'), -1, 'testnet injected')
+ assert.notEqual(result.indexOf('account'), -1, 'account included')
+ })
+
+})