Cleanup unit-test added in 1fc51d129
This commit is contained in:
parent
74aba5f80c
commit
42c83f69a0
|
@ -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();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue