support status message errors for many http statuses

This commit is contained in:
spalger
2015-08-18 16:30:13 -07:00
parent 3c67070377
commit e580b86e2a
2 changed files with 41 additions and 77 deletions

View File

@ -7,7 +7,6 @@ _.each(errors, function (CustomError, name) {
describe(name, function () {
it('extend the ErrorAbstract and Error classes', function () {
var err = new CustomError();
expect(err.message.length).to.be.greaterThan(7);
expect(err).to.be.an(Error);
expect(err).to.be.an(errors._Abstract);
});