aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/account-link-test.js
diff options
context:
space:
mode:
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')
+ })
+
+})