Web3 bindings for chai
Install with npm
$ npm i chai-web3-bindings --save-dev
const chai = require('chai')
chai.use(require('chai-web3-bindings'))
expect('0x000').to.be.hex()
expect(web3.eth.account).to.be.an.address()
expect('0x0000').to.be.zeros()
expect(web3.eth.contract(abi)).to.be.a.contract()
expect('0x74657374').to.be.ascii('test')
expect('0x74657374').to.be.bytes(4)
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Copyright © 2016 Licensed under the MIT license.
This file was generated by readme-generator on November 05, 2016.