Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('binds a winston transport for fluent', async function() {
if (process.env.FLUENTD_SERVICE_PORT_TCP == null) return this.skip();
const logger = await app.get(LoggingBindings.WINSTON_LOGGER);
logger.log('info', 'Hello, LoopBack!');
await sleep(100);
await expectLogsToMatch(
/LoopBack\s+\{"level"\:"info","message":"Hello, LoopBack!"\}/,
);
});