Update wasmd not found messages in tests

This commit is contained in:
Simon Warta 2023-06-13 10:26:28 +02:00
parent b6c270fa81
commit 2b112b79f0
2 changed files with 8 additions and 6 deletions

View File

@ -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);
});
});
});

View File

@ -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,
);
});
});