|
1 | | -import { beforeEach, describe, expect, it, vi } from "vitest"; |
2 | | -import { UnifiedRpcClientFactory } from "@/lib/rpcClientFactory"; |
3 | | -import * as viem from "viem"; |
| 1 | +import { describe, expect, it, vi } from "vitest"; |
4 | 2 |
|
5 | 3 | vi.mock("@/utils/constants", () => ({ |
6 | 4 | environment: "test", |
@@ -92,15 +90,14 @@ describe("RPC Providers", () => { |
92 | 90 | expect(url).toContain("alchemy-key"); |
93 | 91 | }); |
94 | 92 |
|
95 | | - it("should return Infura URL when Alchemy is not available", () => { |
| 93 | + it("should return Ankr URL when Alchemy is not available", () => { |
96 | 94 | const url = EvmClientFactory.getRpcUrl(42220); // Celo |
97 | | - expect(url).toContain("infura.io"); |
98 | | - expect(url).toContain("infura-key"); |
| 95 | + expect(url).toContain("ankr.com"); |
99 | 96 | }); |
100 | 97 |
|
101 | | - it("should return Glif URL for Filecoin", () => { |
| 98 | + it("should return ankr.com URL for Filecoin", () => { |
102 | 99 | const url = EvmClientFactory.getRpcUrl(314159); |
103 | | - expect(url).toContain("glif.io"); |
| 100 | + expect(url).toContain("https://rpc.ankr.com/"); |
104 | 101 | }); |
105 | 102 |
|
106 | 103 | it("should throw error for unsupported chain", () => { |
|
0 commit comments