add errors tests

This commit is contained in:
Fabian Vogelsteller 2015-06-25 09:34:16 +02:00
parent 14f1c5c903
commit aca26bbb0f
1 changed files with 17 additions and 0 deletions

17
test/errors.js Normal file
View File

@ -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);
});
}
});
});