import { expect } from 'chai';
import { getEtherscanUrl } from '../../../src/core/utils/getEtherscanUrl';
import { HashZero } from 'ethers/constants';
describe('UNIT: getEtherscanUrl', function () {
    it('Empty transaction hash', function () {
        expect(function () { return getEtherscanUrl('', HashZero); }).to.throw('Invalid chain name');
    });
    it('Testnet', function () {
        expect(getEtherscanUrl('rinkeby', HashZero)).to.eq("https://rinkeby.etherscan.io/tx/" + HashZero);
    });
    it('Testnet, unformatted name passed', function () {
        expect(getEtherscanUrl('Ropsten ', HashZero)).to.eq("https://ropsten.etherscan.io/tx/" + HashZero);
    });
    it('Mainnet', function () {
        expect(getEtherscanUrl('mainnet', HashZero)).to.eq("https://etherscan.io/tx/" + HashZero);
    });
});
//# sourceMappingURL=getEtherscanUrl.test.js.map