safe-react/config/jest/Web3Mock.js
Adolfo Panizo 88bfca0a0d
WA-280 - Feature open created safes (#12)
* WA-280 Added redux logic for safe route

* WA-280 Added tests including builders for safe's redux store classes

* WA-280 Improving Flow coverage in actions and reducers

* WA- 280 Mocking LocalStorage and Web3 in JEST

* WA-280 Generating view of Safe route and its logic to store and retrieve info from localstorage

* WA-280 Added run-with-testrpc for simulating a testnet in memory while executing tests
2018-04-11 09:28:54 +02:00

9 lines
212 B
JavaScript

// @flow
import Web3 from 'web3'
const window = global.window || {}
window.web3 = window.web3 || {}
window.web3.currentProvider = new Web3.providers.HttpProvider('http://localhost:8545')
global.window = window