Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gomesalexandre committed Sep 24, 2024
1 parent 674f4dc commit 3ff66bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ describe('opportunitiesSlice', () => {
})

it('returns uninitialized properties for initialState', () => {
expect(store.getState().opportunities).toEqual(initialState)
expect(store.getState().opportunities).toEqual({
...initialState,
_persist: {
rehydrated: true,
version: -Infinity,
},
})
})

describe('reducers', () => {
Expand Down
4 changes: 4 additions & 0 deletions src/state/slices/txHistorySlice/txHistorySlice.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ describe('txHistorySlice', () => {

it('returns empty object for initialState', () => {
expect(store.getState().txHistory).toEqual({
_persist: {
rehydrated: true,
version: -Infinity,
},
hydrationMeta: {},
txs: {
byId: {},
Expand Down

0 comments on commit 3ff66bc

Please sign in to comment.