apemanerror
Version:
Error parser for apeman.
32 lines (23 loc) • 558 B
JavaScript
/**
* Test case for apemanerror.
* Runs with mocha.
*/
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 */