diff options
Diffstat (limited to 'test/unit/explorer-link-test.js')
-rw-r--r-- | test/unit/explorer-link-test.js | 11 |
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') + }) + +}) |