web3-fake-provider is a mock provider class that can be used with Ethereum web3.js
. It mocks the behavior of Web3.providers.HttpProvider
.
Might be useful for testing or having a working web3 instance when your Ethereum node is down.
Originally part of web3.js.
Install
npm install web3-fake-provider
Usage
var FakeProvider = var result = '0x47d33b27bb249a2dbab4c0612bf9caf4c1950855';var provider = ;web3;provider;provider; assert;
LICENSE
GPL-3.0