mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Update wasmd not found messages in tests
This commit is contained in:
parent
b6c270fa81
commit
2b112b79f0
@ -400,7 +400,7 @@ describe("CosmWasmClient", () => {
|
||||
const nonExistentAddress = makeRandomAddress();
|
||||
const client = await CosmWasmClient.connect(wasmd.endpoint);
|
||||
await expectAsync(client.queryContractRaw(nonExistentAddress, configKey)).toBeRejectedWithError(
|
||||
/not found/i,
|
||||
/no such contract/i,
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -460,7 +460,7 @@ describe("CosmWasmClient", () => {
|
||||
const client = await CosmWasmClient.connect(wasmd.endpoint);
|
||||
await expectAsync(
|
||||
client.queryContractSmart(nonExistentAddress, { verifier: {} }),
|
||||
).toBeRejectedWithError(/not found/i);
|
||||
).toBeRejectedWithError(/no such contract/i);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -233,7 +233,9 @@ describe("WasmExtension", () => {
|
||||
assert(hackatomCodeId);
|
||||
const client = await makeWasmClient(wasmd.endpoint);
|
||||
const nonExistentAddress = makeRandomAddress();
|
||||
await expectAsync(client.wasm.getContractInfo(nonExistentAddress)).toBeRejectedWithError(/not found/i);
|
||||
await expectAsync(client.wasm.getContractInfo(nonExistentAddress)).toBeRejectedWithError(
|
||||
/no such contract/i,
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@ -301,7 +303,7 @@ describe("WasmExtension", () => {
|
||||
const client = await makeWasmClient(wasmd.endpoint);
|
||||
const nonExistentAddress = makeRandomAddress();
|
||||
await expectAsync(client.wasm.getAllContractState(nonExistentAddress)).toBeRejectedWithError(
|
||||
/not found/i,
|
||||
/no such contract/i,
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -332,7 +334,7 @@ describe("WasmExtension", () => {
|
||||
const nonExistentAddress = makeRandomAddress();
|
||||
await expectAsync(
|
||||
client.wasm.queryContractRaw(nonExistentAddress, hackatomConfigKey),
|
||||
).toBeRejectedWithError(/not found/i);
|
||||
).toBeRejectedWithError(/no such contract/i);
|
||||
});
|
||||
});
|
||||
|
||||
@ -362,7 +364,7 @@ describe("WasmExtension", () => {
|
||||
const nonExistentAddress = makeRandomAddress();
|
||||
const request = { verifier: {} };
|
||||
await expectAsync(client.wasm.queryContractSmart(nonExistentAddress, request)).toBeRejectedWithError(
|
||||
/not found/i,
|
||||
/no such contract/i,
|
||||
);
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user