Skip to content

Commit 9a9fba5

Browse files
committed
s/spyOn/vi.spyOn/
1 parent 6567e39 commit 9a9fba5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/cosmwasm-stargate/src/cosmwasmclient.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

packages/stargate/src/stargateclient.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)