web3.js/test/errors.js

19 lines
393 B
JavaScript
Raw Normal View History

2015-06-25 09:34:16 +02:00
var chai = require('chai');
var assert = chai.assert;
var errors = require('../packages/web3-core-helpers/src/errors.js');
2015-06-25 09:34:16 +02:00
describe('lib/web3/method', function () {
describe('getCall', function () {
for(var key in errors) {
it('should return and error', function () {
2015-06-25 09:34:16 +02:00
assert.instanceOf(errors[key](), Error);
});
}
});
});