UNPKG

apemanerror

Version:
32 lines (23 loc) 558 B
/** * Test case for apemanerror. * Runs with mocha. */ 'use strict' const apemanerror = require('../lib/apemanerror.js') const assert = require('assert') const co = require('co') describe('apemanerror', function () { this.timeout(3000) before(() => co(function * () { })) after(() => co(function * () { })) it('Apemanerror', () => co(function * () { let error = apemanerror('foo', { bar: 'baz' }) assert.equal(error.message, 'foo') assert.equal(error.bar, 'baz') })) }) /* global describe, before, after, it */