UNPKG

apemanerror

Version:
30 lines (21 loc) 511 B
/** * Test case for errorCodes. * Runs with mocha. */ 'use strict' const ErrorCodes = require('../lib/error_codes.js') const assert = require('assert') const co = require('co') describe('error-codes', function () { this.timeout(3000) before(() => co(function * () { })) after(() => co(function * () { })) it('Error codes', () => co(function * () { for (let name of Object.keys(ErrorCodes)) { assert.ok(ErrorCodes[ name ]) } })) }) /* global describe, before, after, it */