2018-01-03 04:05:53 +00:00
|
|
|
// Copyright IBM Corp. 2015,2018. All Rights Reserved.
|
2016-05-03 22:50:21 +00:00
|
|
|
// Node module: loopback
|
|
|
|
// This file is licensed under the MIT License.
|
|
|
|
// License text available at https://opensource.org/licenses/MIT
|
|
|
|
|
2016-11-15 21:46:23 +00:00
|
|
|
'use strict';
|
2015-07-05 17:20:34 +00:00
|
|
|
var loopback = require('../');
|
|
|
|
var app;
|
|
|
|
var assert = require('assert');
|
|
|
|
var request = require('supertest');
|
2016-11-22 14:30:04 +00:00
|
|
|
var expect = require('./helpers/expect');
|
2015-07-05 17:20:34 +00:00
|
|
|
|
|
|
|
describe('loopback.errorHandler(options)', function() {
|
2016-06-14 12:47:41 +00:00
|
|
|
it('should throw a descriptive error', function() {
|
|
|
|
expect(function() { loopback.errorHandler(); })
|
2016-06-08 07:27:23 +00:00
|
|
|
.to.throw(/no longer available.*strong-error-handler/);
|
2015-07-05 17:20:34 +00:00
|
|
|
});
|
|
|
|
});
|