Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

@drizzle/store new version of redux-saga #29

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"deepmerge": "^3.2.0",
"is-plain-object": "^2.0.4",
"redux": "^4.0.1",
"redux-saga": "^0.16.0",
"redux-saga": "^1.1.1",
"web3": "^1.2.1"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/store/test/web3.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { initializeWeb3, getNetworkId } from '../src/web3/web3Saga'
import { initializeWeb3 } from '../src/web3/web3Saga'
import { call, put } from 'redux-saga/effects'
import { runSaga } from 'redux-saga'
import * as Action from '../src/web3/constants'
Expand Down Expand Up @@ -63,7 +63,7 @@ describe('Resolving Web3', () => {
const result = await runSaga({
dispatch: (action) => dispatched.push(action),
getState: () => ({ state: 'test' })
}, initializeWeb3, {}).done
}, initializeWeb3, {}).toPromise()

// result should be a proper web3 provider
expect(result).toBeInstanceOf(require('web3'))
Expand All @@ -81,7 +81,7 @@ describe('Resolving Web3', () => {
},
initializeWeb3,
{}
).done
).toPromise()

// saga result should be undefined if an exception occurs
expect(web3Result).toBe(undefined)
Expand All @@ -100,7 +100,7 @@ describe('Resolving Web3', () => {
const result = await runSaga({
dispatch: (action) => dispatched.push(action),
getState: () => ({ state: 'test' })
}, initializeWeb3, {}).done
}, initializeWeb3, {}).toPromise()

// saga result is undefined when exception is thrown
expect(result).toBe(undefined)
Expand Down
Loading