Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('throws error if fluent is not configured', async function() {
if (process.env.FLUENTD_SERVICE_PORT_TCP == null) return this.skip();
// Remove the configuration for fluent sender
app.unbind(BindingKey.buildKeyForConfig(LoggingBindings.FLUENT_SENDER));
return expect(app.get(LoggingBindings.FLUENT_SENDER)).to.be.rejectedWith(
/Fluent is not configured\. Please configure logging\.fluent\.sender\./,
);
});
it('throws error if fluent is not configured', async function() {
if (process.env.FLUENTD_SERVICE_PORT_TCP == null) return this.skip();
// Remove the configuration for fluent sender
app.unbind(BindingKey.buildKeyForConfig(LoggingBindings.FLUENT_SENDER));
return expect(app.get(LoggingBindings.FLUENT_SENDER)).to.be.rejectedWith(
/Fluent is not configured\. Please configure logging\.fluent\.sender\./,
);
});