test: fix deprecation warnings

This commit is contained in:
Miroslav Bajtoš 2016-09-01 10:24:56 +02:00
parent fbc013dab7
commit e19cddd343
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('port', 0);
app.set('legacyExplorer', false);
app.set('remoting', {
errorHandler: { debug: true, log: false },
context: false,
});
app.use(loopback.rest());
app.locals.handler = app.listen();