Skip to content

Commit

Permalink
Cleanup unit-test added in 1fc51d1
Browse files Browse the repository at this point in the history
  • Loading branch information
bajtos committed Jun 14, 2016
1 parent 74aba5f commit 42c83f6
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions test/error-handler.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,8 @@ var request = require('supertest');
var expect = require('chai').expect;

describe('loopback.errorHandler(options)', function() {
it('should throw a descriptive error', function(done) {
try {
//arrange
var app = loopback();
app.use(loopback.urlNotFound());
app.use(loopback.errorHandler({ log: false }));
} catch (e) {
expect(function() { loopback.errorHandler(); })
it('should throw a descriptive error', function() {
expect(function() { loopback.errorHandler(); })
.to.throw(/no longer available.*strong-error-handler/);
done();
}
});
});

0 comments on commit 42c83f6

Please sign in to comment.