Skip to content

Commit

Permalink
fix: QPPA-7951 resolved linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-gates committed Jul 25, 2023
1 parent 8f776d3 commit 2f4a9bb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const noneLogger = {

// A morgan-equivalent logger used for format='none' that suppresses
// all output
const noneAccessLogger = function (req, res, next) {};
const noneAccessLogger = function (...args: unknown[]) {};

class SharedLogger {
accessLogger = undefined;
Expand Down
6 changes: 3 additions & 3 deletions src/request.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import http = require('http');

export interface Request extends http.IncomingMessage {
baseUrl: string;
query: string;
}
baseUrl: string;
query: string;
}
12 changes: 6 additions & 6 deletions test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ describe('sharedLogger', function () {
};
const spy = sandbox.spy(process.stdout, 'write');
sharedLogger.configure(options);
sharedLogger.logger.info('should be prettyPrint', { meta: {a: 'b'}});
sharedLogger.logger.info('should be prettyPrint', {
meta: { a: 'b' },
});

const expectedVal = "{\n meta: { a: 'b' },\n level: 'info',\n message: 'should be prettyPrint',\n label: 'test'\n}\n";
const expectedVal =
"{\n meta: { a: 'b' },\n level: 'info',\n message: 'should be prettyPrint',\n label: 'test'\n}\n";

assert.equal(
spy.getCall(0).lastArg,
expectedVal,
);
assert.equal(spy.getCall(0).lastArg, expectedVal);
});

it('should set format to logstash', () => {
Expand Down

0 comments on commit 2f4a9bb

Please sign in to comment.