test: fix deprecation warnings

This commit is contained in:
Miroslav Bajtoš 2016-09-01 10:24:56 +02:00
parent 3ed4d31eec
commit 0c78433b7e
1 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,12 @@ function createRestAppAndListen() {
app.set('host', '127.0.0.1'); app.set('host', '127.0.0.1');
app.set('port', 0); app.set('port', 0);
app.set('legacyExplorer', false);
app.set('remoting', {
errorHandler: { debug: true, log: false },
context: false,
});
app.use(loopback.rest()); app.use(loopback.rest());
app.locals.handler = app.listen(); app.locals.handler = app.listen();