UNPKG

arangodb-error-codes

Version:
25 lines (17 loc) 633 B
'use strict'; var _lodash = require('lodash'); var _lodash2 = _interopRequireDefault(_lodash); var _index = require('../index'); var _index2 = _interopRequireDefault(_index); var _chai = require('chai'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } describe('codes', function () { it('is an object', function () { (0, _chai.expect)(_index2.default).to.be.an('object'); }); it('contains only numbers as values', function () { _lodash2.default.mapValues(_index2.default, function (code) { return (0, _chai.expect)(code).to.be.a('number'); }); }); });