Adaot tests to Date -> Timestamp change

This commit is contained in:
Simon Warta 2021-12-06 11:03:28 +01:00
parent fa58c73988
commit 61fb5872df
2 changed files with 10 additions and 9 deletions

View File

@ -39,7 +39,8 @@ and this project adheres to
`WebsocketClient` constructors ([#897]).
- all: Upgrade cosmjs-types to 0.4. This includes the types of the Cosmos SDK
0.44 modules x/authz and x/feegrant. It causes a few breaking changes by
adding fields to interfaces. ([#928])
adding fields to interfaces as well as changing `Date` to a `Timestamp`
object. ([#928])
- @cosmjs/stargate and @cosmjs/cosmwasm-stargate: Add simulation support
([#931]).
- @cosmjs/tendermint-rpc: Remove `Tendermint33Client` and related symbols.

View File

@ -235,11 +235,11 @@ describe("GovExtension", () => {
proposalId: longify(proposalId),
status: ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD,
finalTallyResult: { yes: "0", abstain: "0", no: "0", noWithVeto: "0" },
submitTime: jasmine.any(Date),
depositEndTime: jasmine.any(Date),
submitTime: { seconds: jasmine.any(Long), nanos: jasmine.any(Number) },
depositEndTime: { seconds: jasmine.any(Long), nanos: jasmine.any(Number) },
totalDeposit: initialDeposit,
votingStartTime: jasmine.any(Date),
votingEndTime: jasmine.any(Date),
votingStartTime: { seconds: jasmine.any(Long), nanos: jasmine.any(Number) },
votingEndTime: { seconds: jasmine.any(Long), nanos: jasmine.any(Number) },
});
tmClient.disconnect();
@ -261,11 +261,11 @@ describe("GovExtension", () => {
proposalId: longify(proposalId),
status: ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD,
finalTallyResult: { yes: "0", abstain: "0", no: "0", noWithVeto: "0" },
submitTime: jasmine.any(Date),
depositEndTime: jasmine.any(Date),
submitTime: { seconds: jasmine.any(Long), nanos: jasmine.any(Number) },
depositEndTime: { seconds: jasmine.any(Long), nanos: jasmine.any(Number) },
totalDeposit: initialDeposit,
votingStartTime: jasmine.any(Date),
votingEndTime: jasmine.any(Date),
votingStartTime: { seconds: jasmine.any(Long), nanos: jasmine.any(Number) },
votingEndTime: { seconds: jasmine.any(Long), nanos: jasmine.any(Number) },
});
tmClient.disconnect();