Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team committed Feb 19, 2024
1 parent e652100 commit 4476767
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/date.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { requestLogger } from '../src/index.mjs';

describe(':date', function () {
before(beforeSuite);

beforeEach(function () {
beforeTest();
mockDate();
Expand Down
2 changes: 2 additions & 0 deletions test/logger.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { mockDate, unmockDate } from './helpers/dateproxy.mjs';

describe('RequestLogger', function () {
before(beforeSuite);

beforeEach(beforeTest);

it('should pass a basic test', function () {
Expand Down Expand Up @@ -36,6 +37,7 @@ describe('RequestLogger', function () {

describe('Log Format', function () {
beforeEach(mockDate);

afterEach(unmockDate);

it('should use default web format', function () {
Expand Down
1 change: 1 addition & 0 deletions test/mode.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { requestLogger } from '../src/index.mjs';

describe('Operation Mode', function () {
before(beforeSuite);

beforeEach(beforeTest);

it('should work in immediate mode', function () {
Expand Down
1 change: 1 addition & 0 deletions test/remote-user.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { requestLogger } from '../src/index.mjs';

describe(':remote-user', function () {
before(beforeSuite);

beforeEach(beforeTest);

it('should handle the case when authorization header is not available', function () {
Expand Down
1 change: 1 addition & 0 deletions test/req.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { requestLogger } from '../src/index.mjs';

describe(':req', function () {
before(beforeSuite);

beforeEach(beforeTest);

it('should handle the case when header is not available', function () {
Expand Down
1 change: 1 addition & 0 deletions test/res.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { requestLogger } from '../src/index.mjs';

describe(':res', function () {
before(beforeSuite);

beforeEach(beforeTest);

it('should handle the case when header is not available', function () {
Expand Down
1 change: 1 addition & 0 deletions test/settokenhandler.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { requestLogger, setTokenHandler } from '../src/index.mjs';

describe('setTokenHandler', function () {
before(beforeSuite);

beforeEach(beforeTest);

afterEach(function () {
Expand Down
1 change: 1 addition & 0 deletions test/total-time.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { requestLogger } from '../src/index.mjs';

describe(':total-time', function () {
before(beforeSuite);

beforeEach(beforeTest);

it('should log the total time', function () {
Expand Down
1 change: 1 addition & 0 deletions test/url.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { requestLogger } from '../src/index.mjs';

describe(':url', function () {
before(beforeSuite);

beforeEach(beforeTest);

it('should log the url', function () {
Expand Down

0 comments on commit 4476767

Please sign in to comment.