Skip to content

Commit

Permalink
update api test snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
v-almonacid committed Jul 10, 2020
1 parent 0a0f47d commit 75c4cee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/api/__snapshots__/api.test.js.snap
Expand Up @@ -2,9 +2,8 @@

exports[`History API can fetch history 1`] = `
Object {
"bestBlockNum": Any<Number>,
"blockHash": "008a32c2b852aefdf9077bcb471492c3303c88d64d281f7aa6ebf2e87ba63e34",
"blockNum": 1889681,
"blockNum": Any<Number>,
"epoch": 87,
"id": "2401257195a3cd7d43e832b2d2e8215828ebbcdea472ef81f8de3314a535813e",
"inputs": Array [
Expand Down
4 changes: 2 additions & 2 deletions src/api/api.test.js
Expand Up @@ -24,7 +24,7 @@ describe('History API', () => {
const result = await api.fetchNewTxHistory(request)

expect(result.transactions[0]).toMatchSnapshot({
bestBlockNum: expect.any(Number),
blockNum: expect.any(Number),
lastUpdatedAt: expect.any(String), // these fields may change (e.g. after restarting a node)
submittedAt: expect.any(String),
})
Expand Down Expand Up @@ -62,7 +62,7 @@ describe('History API', () => {
// We are async
expect.assertions(1)

await expect(api.fetchNewTxHistory(request, 4404464)).rejects.toThrow(
await expect(api.fetchNewTxHistory(request)).rejects.toThrow(
ApiHistoryError,
)
})
Expand Down

0 comments on commit 75c4cee

Please sign in to comment.