2016-08-19 01:23:12 +02:00
|
|
|
var assert = require('assert')
|
|
|
|
var linkGen = require('../../ui/lib/account-link')
|
|
|
|
|
2017-05-04 23:35:10 +02:00
|
|
|
describe('account-link', function () {
|
|
|
|
it('adds ropsten prefix to ropsten test network', function () {
|
2017-03-27 20:32:00 +02:00
|
|
|
var result = linkGen('account', '3')
|
|
|
|
assert.notEqual(result.indexOf('ropsten'), -1, 'ropsten included')
|
2016-11-22 04:43:59 +01:00
|
|
|
assert.notEqual(result.indexOf('account'), -1, 'account included')
|
|
|
|
})
|
|
|
|
|
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('account', '42')
|
|
|
|
assert.notEqual(result.indexOf('kovan'), -1, 'kovan included')
|
2016-08-19 01:23:12 +02:00
|
|
|
assert.notEqual(result.indexOf('account'), -1, 'account included')
|
|
|
|
})
|
|
|
|
})
|