2016-04-27 23:43:09 +02:00
|
|
|
var assert = require('assert')
|
|
|
|
var linkGen = require('../../ui/lib/explorer-link')
|
|
|
|
|
2017-05-04 23:35:10 +02:00
|
|
|
describe('explorer-link', function () {
|
|
|
|
it('adds ropsten prefix to ropsten test network', function () {
|
2016-12-20 22:49:22 +01:00
|
|
|
var result = linkGen('hash', '3')
|
2017-03-27 20:32:00 +02:00
|
|
|
assert.notEqual(result.indexOf('ropsten'), -1, 'ropsten injected')
|
|
|
|
})
|
|
|
|
|
2017-05-04 23:35:10 +02:00
|
|
|
it('adds kovan prefix to kovan test network', function () {
|
2017-03-27 20:32:00 +02:00
|
|
|
var result = linkGen('hash', '42')
|
|
|
|
assert.notEqual(result.indexOf('kovan'), -1, 'kovan injected')
|
2016-04-27 23:43:09 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
})
|