A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ciphermask/test/unit/ui/etherscan-prefix-for-networ...

31 lines
952 B

import assert from 'assert'
import { getEtherscanNetworkPrefix } from '../../../ui/lib/etherscan-prefix-for-network'
6 years ago
describe('Etherscan Network Prefix', function () {
6 years ago
it('returns empty string as default value', function () {
assert.equal(getEtherscanNetworkPrefix(), '')
6 years ago
})
it('returns empty string as a prefix for networkId of 1', function () {
assert.equal(getEtherscanNetworkPrefix('1'), '')
6 years ago
})
it('returns ropsten as prefix for networkId of 3', function () {
assert.equal(getEtherscanNetworkPrefix('3'), 'ropsten.')
6 years ago
})
it('returns rinkeby as prefix for networkId of 4', function () {
assert.equal(getEtherscanNetworkPrefix('4'), 'rinkeby.')
6 years ago
})
it('returs kovan as prefix for networkId of 42', function () {
assert.equal(getEtherscanNetworkPrefix('42'), 'kovan.')
6 years ago
})
it('returs goerli as prefix for networkId of 5', function () {
assert.equal(getEtherscanNetworkPrefix('5'), 'goerli.')
})
6 years ago
})