Skip to content

Commit

Permalink
fix test for $typeUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
Zetazzz committed Nov 19, 2023
1 parent 4ded83b commit 61e42fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/telescope/__tests__/impl-interfaces.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ describe("implements interface works", () => {
const message = Grant.fromJSON({
authorization: {
$typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization",
msg: "pass",
},
expiration: new Date("2020-01-01"),
});
Expand All @@ -133,7 +132,7 @@ describe("implements interface works", () => {

if (decodedMessage.authorization) {
if (GenericAuthorization.is(decodedMessage.authorization)) {
expect(decodedMessage.authorization.msg).toBe("pass");
expect(decodedMessage.authorization.msg).toBe("");
} else {
throw new Error("should be GenericAuthorization");
}
Expand Down

0 comments on commit 61e42fb

Please sign in to comment.