mirror of https://github.com/status-im/web3.js.git
add errors tests
This commit is contained in:
parent
14f1c5c903
commit
aca26bbb0f
|
@ -0,0 +1,17 @@
|
|||
var chai = require('chai');
|
||||
var assert = chai.assert;
|
||||
var errors = require('../lib/web3/errors');
|
||||
|
||||
describe('lib/web3/method', function () {
|
||||
describe('getCall', function () {
|
||||
|
||||
for(var key in errors) {
|
||||
it('should return and error', function () {
|
||||
|
||||
assert.instanceOf(errors[key](), Error);
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue