Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
chore: change comment blocks with one line into single block
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Sep 17, 2023
1 parent 630c72b commit 3732126
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 48 deletions.
4 changes: 1 addition & 3 deletions src/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,7 @@ async function getConfig() {
if (env.LOG_ROTATION_FILENAME) {
const logFile = normalizeTrim(env.LOG_ROTATION_FILENAME);

/**
* @see {@link https://github.com/rogerc/file-stream-rotator/#options | File stream rotator options}
*/
/** @see {@link https://github.com/rogerc/file-stream-rotator/#options | File stream rotator options} */
config.fastifyInit.logger.stream = getStream({
audit_file: joinSafe(dirname(logFile), ".audit.json"),
date_format: env.LOG_ROTATION_DATE_FORMAT || "YYYY-MM-DD",
Expand Down
4 changes: 1 addition & 3 deletions src/plugins/clean-object/plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ const Fastify = require("fastify");
const plugin = require(".");

describe("Clean-Object plugin", () => {
/**
* @type {Fastify.FastifyInstance}
*/
/** @type {Fastify.FastifyInstance} */
let server;

beforeAll(async () => {
Expand Down
4 changes: 1 addition & 3 deletions src/plugins/convert-date-param-operator/plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ const Fastify = require("fastify");
const plugin = require(".");

describe("Convert-Date-Param-Operator plugin", () => {
/**
* @type {Fastify.FastifyInstance}
*/
/** @type {Fastify.FastifyInstance} */
let server;

beforeAll(async () => {
Expand Down
4 changes: 1 addition & 3 deletions src/plugins/db/plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ jest.mock("pg", () => ({

describe("DB plugin", () => {
let config;
/**
* @type {Fastify.FastifyInstance}
*/
/** @type {Fastify.FastifyInstance} */
let server;

const query = "SELECT 'test' AS \"example\"";
Expand Down
4 changes: 1 addition & 3 deletions src/routes/admin/access/bearer-token/route.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,7 @@ describe("Access route", () => {
];
describe.each(connectionTests)("$testName", ({ envVariables, mocks }) => {
let config;
/**
* @type {Fastify.FastifyInstance}
*/
/** @type {Fastify.FastifyInstance} */
let server;

beforeAll(async () => {
Expand Down
4 changes: 1 addition & 3 deletions src/routes/admin/healthcheck/route.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ const sharedSchemas = require("../../../plugins/shared-schemas");
describe("Healthcheck route", () => {
describe("GET requests", () => {
let config;
/**
* @type {Fastify.FastifyInstance}
*/
/** @type {Fastify.FastifyInstance} */
let server;

beforeAll(async () => {
Expand Down
8 changes: 2 additions & 6 deletions src/routes/contact/route.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,7 @@ describe("Contact route", () => {
connectionTests.forEach((testObject) => {
describe(`${testObject.testName} - with request scopes`, () => {
let config;
/**
* @type {Fastify.FastifyInstance}
*/
/** @type {Fastify.FastifyInstance} */
let server;

beforeAll(async () => {
Expand Down Expand Up @@ -847,9 +845,7 @@ describe("Contact route", () => {

describe(`${testObject.testName} - without request scopes`, () => {
let config;
/**
* @type {Fastify.FastifyInstance}
*/
/** @type {Fastify.FastifyInstance} */
let server;

beforeAll(async () => {
Expand Down
4 changes: 1 addition & 3 deletions src/routes/docs/openapi/route.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ const sharedSchemas = require("../../../plugins/shared-schemas");
describe("OpenAPI route", () => {
describe("GET requests", () => {
let config;
/**
* @type {Fastify.FastifyInstance}
*/
/** @type {Fastify.FastifyInstance} */
let server;

beforeAll(async () => {
Expand Down
4 changes: 1 addition & 3 deletions src/routes/docs/route.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ const sharedSchemas = require("../../plugins/shared-schemas");
describe("Docs route", () => {
describe("GET requests", () => {
let config;
/**
* @type {Fastify.FastifyInstance}
*/
/** @type {Fastify.FastifyInstance} */
let server;

beforeAll(async () => {
Expand Down
24 changes: 6 additions & 18 deletions src/server.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,7 @@ describe("Server deployment", () => {

describe("Bearer token disabled", () => {
let config;
/**
* @type {Fastify.FastifyInstance}
*/
/** @type {Fastify.FastifyInstance} */
let server;

beforeAll(async () => {
Expand Down Expand Up @@ -370,9 +368,7 @@ describe("Server deployment", () => {

describe("Bearer token enabled", () => {
let config;
/**
* @type {Fastify.FastifyInstance}
*/
/** @type {Fastify.FastifyInstance} */
let server;

beforeAll(async () => {
Expand Down Expand Up @@ -561,9 +557,7 @@ describe("Server deployment", () => {

describe("Basic auth", () => {
let config;
/**
* @type {Fastify.FastifyInstance}
*/
/** @type {Fastify.FastifyInstance} */
let server;

beforeAll(async () => {
Expand Down Expand Up @@ -665,13 +659,9 @@ describe("Server deployment", () => {

describe("CORS", () => {
let config;
/**
* @type {{ [x: string]: any }}
*/
/** @type {{ [key: string]: any }} */
let currentEnv;
/**
* @type {Fastify.FastifyInstance}
*/
/** @type {Fastify.FastifyInstance} */
let server;

beforeAll(() => {
Expand Down Expand Up @@ -936,9 +926,7 @@ describe("Server deployment", () => {

describe("API documentation", () => {
let config;
/**
* @type {Fastify.FastifyInstance}
*/
/** @type {Fastify.FastifyInstance} */
let server;

beforeAll(async () => {
Expand Down

0 comments on commit 3732126

Please sign in to comment.