"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var chai_1 = require("chai");
var getEtherscanUrl_1 = require("../../../src/core/utils/getEtherscanUrl");
var constants_1 = require("ethers/constants");
describe('UNIT: getEtherscanUrl', function () {
    it('Empty transaction hash', function () {
        chai_1.expect(function () { return getEtherscanUrl_1.getEtherscanUrl('', constants_1.HashZero); }).to.throw('Invalid chain name');
    });
    it('Testnet', function () {
        chai_1.expect(getEtherscanUrl_1.getEtherscanUrl('rinkeby', constants_1.HashZero)).to.eq("https://rinkeby.etherscan.io/tx/" + constants_1.HashZero);
    });
    it('Testnet, unformatted name passed', function () {
        chai_1.expect(getEtherscanUrl_1.getEtherscanUrl('Ropsten ', constants_1.HashZero)).to.eq("https://ropsten.etherscan.io/tx/" + constants_1.HashZero);
    });
    it('Mainnet', function () {
        chai_1.expect(getEtherscanUrl_1.getEtherscanUrl('mainnet', constants_1.HashZero)).to.eq("https://etherscan.io/tx/" + constants_1.HashZero);
    });
});
//# sourceMappingURL=getEtherscanUrl.test.js.map