aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/explorer-link-test.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-04-28 05:43:09 +0800
committerDan Finlay <dan@danfinlay.com>2016-04-28 05:43:09 +0800
commit39a84c0e47f35bc0e7c2a632683dc9ae802900b3 (patch)
tree850b9983cf1be8820a4aab9c59a3d6f40d23ee5e /test/unit/explorer-link-test.js
parent0c293f9df0e6b8284f88f2362aa1099486254dab (diff)
downloadtangerine-wallet-browser-39a84c0e47f35bc0e7c2a632683dc9ae802900b3.tar
tangerine-wallet-browser-39a84c0e47f35bc0e7c2a632683dc9ae802900b3.tar.gz
tangerine-wallet-browser-39a84c0e47f35bc0e7c2a632683dc9ae802900b3.tar.bz2
tangerine-wallet-browser-39a84c0e47f35bc0e7c2a632683dc9ae802900b3.tar.lz
tangerine-wallet-browser-39a84c0e47f35bc0e7c2a632683dc9ae802900b3.tar.xz
tangerine-wallet-browser-39a84c0e47f35bc0e7c2a632683dc9ae802900b3.tar.zst
tangerine-wallet-browser-39a84c0e47f35bc0e7c2a632683dc9ae802900b3.zip
Fix explorer link generation
Diffstat (limited to 'test/unit/explorer-link-test.js')
-rw-r--r--test/unit/explorer-link-test.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/unit/explorer-link-test.js b/test/unit/explorer-link-test.js
new file mode 100644
index 000000000..961b400fd
--- /dev/null
+++ b/test/unit/explorer-link-test.js
@@ -0,0 +1,11 @@
+var assert = require('assert')
+var linkGen = require('../../ui/lib/explorer-link')
+
+describe('explorer-link', function() {
+
+ it('adds testnet prefix to morden test network', function() {
+ var result = linkGen('hash', '2')
+ assert.notEqual(result.indexOf('testnet'), -1, 'testnet injected')
+ })
+
+})