@@ -3,7 +3,6 @@ import { describe, expect, it, vi } from "vitest";
33vi . mock ( "@/utils/constants" , ( ) => ( {
44 environment : "test" ,
55 alchemyApiKey : "mock-alchemy-key" ,
6- infuraApiKey : "mock-infura-key" ,
76 drpcApiPkey : "mock-drpc-key" ,
87 filecoinApiKey : "mock-filecoin-key" ,
98 Environment : { TEST : "test" , PROD : "prod" } ,
@@ -42,10 +41,9 @@ describe("EvmClient", () => {
4241 expect ( sepoliaUrls [ 0 ] ) . toContain ( "alchemy.com" ) ;
4342
4443 const opUrls = EvmClientFactory . getAllAvailableUrls ( 10 ) ;
45- expect ( opUrls ) . toHaveLength ( 3 ) ; // Alchemy, Infura , DRPC for Optimism
44+ expect ( opUrls ) . toHaveLength ( 2 ) ; // Alchemy, DRPC for Optimism
4645 expect ( opUrls [ 0 ] ) . toContain ( "alchemy.com" ) ;
47- expect ( opUrls [ 1 ] ) . toContain ( "infura.io" ) ;
48- expect ( opUrls [ 2 ] ) . toContain ( "drpc.org" ) ;
46+ expect ( opUrls [ 1 ] ) . toContain ( "drpc.org" ) ;
4947 } ) ;
5048
5149 it ( "returns empty array for unsupported chain" , ( ) => {
@@ -90,11 +88,6 @@ describe("RPC Providers", () => {
9088 expect ( url ) . toContain ( "alchemy-key" ) ;
9189 } ) ;
9290
93- it ( "should return Ankr URL when Alchemy is not available" , ( ) => {
94- const url = EvmClientFactory . getRpcUrl ( 42220 ) ; // Celo
95- expect ( url ) . toContain ( "ankr.com" ) ;
96- } ) ;
97-
9891 it ( "should return ankr.com URL for Filecoin" , ( ) => {
9992 const url = EvmClientFactory . getRpcUrl ( 314159 ) ;
10093 expect ( url ) . toContain ( "https://rpc.ankr.com/" ) ;
0 commit comments