loopback/test/error-handler.test.js

19 lines
601 B
JavaScript
Raw Normal View History

2020-01-21 19:19:18 +00:00
// Copyright IBM Corp. 2015,2019. 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
'use strict';
const loopback = require('../');
let app;
const assert = require('assert');
const request = require('supertest');
const expect = require('./helpers/expect');
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/);
});
});