mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
cosmwasm-stargate: Update tests after ts-proto update
This commit is contained in:
parent
527f2ac351
commit
5245028200
@ -370,7 +370,7 @@ describe("CosmWasmClient", () => {
|
||||
|
||||
const client = await CosmWasmClient.connect(wasmd.endpoint);
|
||||
const raw = await client.queryContractRaw(contract.address, otherKey);
|
||||
expect(raw).toBeNull();
|
||||
expect(raw).toEqual(new Uint8Array());
|
||||
});
|
||||
|
||||
it("errors for non-existent contract", async () => {
|
||||
|
@ -324,12 +324,12 @@ describe("WasmExtension", () => {
|
||||
expect(model.beneficiary).toMatch(base64Matcher);
|
||||
});
|
||||
|
||||
it("returns undefined for missing key", async () => {
|
||||
it("returns empty for missing key", async () => {
|
||||
pendingWithoutWasmd();
|
||||
assert(hackatomContractAddress);
|
||||
const client = await makeWasmClient(wasmd.endpoint);
|
||||
const { data } = await client.wasm.queryContractRaw(hackatomContractAddress, fromHex("cafe0dad"));
|
||||
expect(data).toBeUndefined();
|
||||
expect(data).toEqual(new Uint8Array());
|
||||
});
|
||||
|
||||
it("returns null for non-existent address", async () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user