safe-react/config/jest/Web3Mock.js

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