Skip to content

Commit 42c83f6

Browse files
committed
Cleanup unit-test added in 1fc51d1
1 parent 74aba5f commit 42c83f6

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

test/error-handler.test.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,8 @@ var request = require('supertest');
1010
var expect = require('chai').expect;
1111

1212
describe('loopback.errorHandler(options)', function() {
13-
it('should throw a descriptive error', function(done) {
14-
try {
15-
//arrange
16-
var app = loopback();
17-
app.use(loopback.urlNotFound());
18-
app.use(loopback.errorHandler({ log: false }));
19-
} catch (e) {
20-
expect(function() { loopback.errorHandler(); })
13+
it('should throw a descriptive error', function() {
14+
expect(function() { loopback.errorHandler(); })
2115
.to.throw(/no longer available.*strong-error-handler/);
22-
done();
23-
}
2416
});
2517
});

0 commit comments

Comments
 (0)