mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Adaot tests to Date -> Timestamp change
This commit is contained in:
parent
fa58c73988
commit
61fb5872df
@ -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.
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user