Cleanup unit-test added in 1fc51d129

This commit is contained in:
Miroslav Bajtoš 2016-06-14 14:47:41 +02:00
parent 74aba5f80c
commit 42c83f69a0
1 changed files with 2 additions and 10 deletions

View File

@ -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();
}
});
});