mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Use assert to avoid !
This commit is contained in:
parent
8e0042ed75
commit
3a9cf56635
@ -511,8 +511,8 @@ describe("RestClient", () => {
|
||||
|
||||
// query by one key
|
||||
const raw = await client.queryContractRaw(contractAddress!, expectedKey);
|
||||
expect(raw).not.toBeNull();
|
||||
const model = JSON.parse(fromAscii(raw!));
|
||||
assert(raw, "must get result");
|
||||
const model = JSON.parse(fromAscii(raw));
|
||||
expect(model.verifier).toBeDefined();
|
||||
expect(model.beneficiary).toBeDefined();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user