Skip to content

Commit dfeccf9

Browse files
committed
Remove outdated tests
1 parent 959bb34 commit dfeccf9

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

packages/vscode-host/src/deth/commands/ethViewerCommands.test.ts

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ describe("ethViewerCommands", () => {
77
const { getApiName, getContractAddress } = ethViewerCommands;
88

99
describe(getApiName.name, () => {
10-
it("reads API name from subdomain in hostname", () => {
11-
givenUrl(
12-
"https://ropsten.etherscan.deth.net:8080/address/0x1234567890123456789012345678901234567890"
13-
);
14-
15-
expect(getApiName()).toEqual("ropsten.etherscan");
16-
});
17-
1810
it("reads API name from 'explorer' search param", () => {
1911
givenUrl(
2012
"https://localhost:1234/0x1234567890123456789012345678901234567890?explorer=etherscan"
@@ -23,36 +15,6 @@ describe("ethViewerCommands", () => {
2315
expect(getApiName()).toEqual("etherscan");
2416
});
2517

26-
it('strips leading "www." from hostname', () => {
27-
givenUrl(
28-
"https://www.bscscan.deth.net/token/0x2170ed0880ac9a755fd29b2688956bd959f933f8"
29-
);
30-
31-
expect(getApiName()).toEqual("bscscan");
32-
});
33-
});
34-
35-
describe(getContractAddress.name, () => {
36-
it("ignores `address/` in path", () => {
37-
givenUrl(
38-
"https://ftmscan.deth.net/address/0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83#code"
39-
);
40-
41-
expect(getContractAddress()).toEqual(
42-
"0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83"
43-
);
44-
});
45-
46-
it("ignores `token/` in path", () => {
47-
givenUrl(
48-
"https://bscscan.deth.net/token/0xe9e7cea3dedca5984780bafc599bd69add087d56#readContract"
49-
);
50-
51-
expect(getContractAddress()).toEqual(
52-
"0xe9e7cea3dedca5984780bafc599bd69add087d56"
53-
);
54-
});
55-
5618
it("reads the address right after first slash", () => {
5719
givenUrl(
5820
"https://etherscan.deth.net/0xe9e7cea3dedca5984780bafc599bd69add087d56"

0 commit comments

Comments
 (0)