Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorhdzg committed Mar 14, 2024
1 parent 32fc1a2 commit 5e0291e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/winston-transport/test/openTelemetryTransport.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('OpenTelemetryTransportV3', () => {
it('emit LogRecord', () => {
const transport = new OpenTelemetryTransportV3();
const writeSpy = sinon.spy(transport, 'emit');
transport.log({ message: kMessage }, () => { });
transport.log({ message: kMessage }, () => {});
setImmediate(() => {
sinon.assert.calledOnce(writeSpy);
});
Expand All @@ -57,7 +57,7 @@ describe('OpenTelemetryTransportV3', () => {
extraAttribute2: 'attributeValue2',
};
const parameters = Object.assign({ message: kMessage }, extraAttributes);
transport.log(parameters, () => { });
transport.log(parameters, () => {});
const logRecords = memoryLogExporter.getFinishedLogRecords();
assert.strictEqual(logRecords.length, 1);
assert.strictEqual(logRecords[0].body, kMessage);
Expand All @@ -73,7 +73,7 @@ describe('OpenTelemetryTransportV3', () => {

describe('emit logRecord severity', () => {
it('npm levels', () => {
const callback = () => { };
const callback = () => {};
const transport = new OpenTelemetryTransportV3();
transport.log({ message: kMessage, level: 'error' }, callback);
transport.log({ message: kMessage, level: 'warn' }, callback);
Expand All @@ -94,7 +94,7 @@ describe('OpenTelemetryTransportV3', () => {
});

it('cli levels', () => {
const callback = () => { };
const callback = () => {};
const transport = new OpenTelemetryTransportV3();
transport.log({ message: kMessage, level: 'error' }, callback);
transport.log({ message: kMessage, level: 'warn' }, callback);
Expand All @@ -121,7 +121,7 @@ describe('OpenTelemetryTransportV3', () => {
});

it('syslog levels', () => {
const callback = () => { };
const callback = () => {};
const transport = new OpenTelemetryTransportV3();
transport.log({ message: kMessage, level: 'emerg' }, callback);
transport.log({ message: kMessage, level: 'alert' }, callback);
Expand Down

0 comments on commit 5e0291e

Please sign in to comment.