File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ interface HackatomInstance {
5555 it ( "caches chain ID" , async ( ) => {
5656 const client = await CosmWasmClient . connect ( wasmd . endpoint ) ;
5757 const openedClient = client as unknown as PrivateCosmWasmClient ;
58- const getCodeSpy = spyOn ( openedClient . cometClient ! , "status" ) . and . callThrough ( ) ;
58+ const getCodeSpy = vi . spyOn ( openedClient . cometClient ! , "status" ) ;
5959
6060 expect ( await client . getChainId ( ) ) . toEqual ( wasmd . chainId ) ; // from network
6161 expect ( await client . getChainId ( ) ) . toEqual ( wasmd . chainId ) ; // from cache
@@ -251,7 +251,7 @@ interface HackatomInstance {
251251 it ( "caches downloads" , async ( ) => {
252252 const client = await CosmWasmClient . connect ( wasmd . endpoint ) ;
253253 const openedClient = client as unknown as PrivateCosmWasmClient ;
254- const getCodeSpy = spyOn ( openedClient . queryClient ! . wasm , "getCode" ) . and . callThrough ( ) ;
254+ const getCodeSpy = vi . spyOn ( openedClient . queryClient ! . wasm , "getCode" ) ;
255255
256256 const result1 = await client . getCodeDetails ( deployedHackatom . codeId ) ; // from network
257257 const result2 = await client . getCodeDetails ( deployedHackatom . codeId ) ; // from cache
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ describe("isDeliverTxSuccess", () => {
9494 it ( "caches chain ID" , async ( ) => {
9595 const client = await StargateClient . connect ( simapp . tendermintUrlHttp ) ;
9696 const openedClient = client as unknown as PrivateStargateClient ;
97- const getCodeSpy = spyOn ( openedClient . cometClient ! , "status" ) . and . callThrough ( ) ;
97+ const getCodeSpy = vi . spyOn ( openedClient . cometClient ! , "status" ) ;
9898
9999 expect ( await client . getChainId ( ) ) . toEqual ( simapp . chainId ) ; // from network
100100 expect ( await client . getChainId ( ) ) . toEqual ( simapp . chainId ) ; // from cache
You can’t perform that action at this time.
0 commit comments