Skip to content

Commit

Permalink
fix biome linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousme committed Oct 20, 2023
1 parent e98f2b9 commit 1c31511
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions lib/Parser.v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,10 @@ export class ParserV2 extends ParserBase {
}
case "basePath":
this.config.prefix = spec[item];
// the missing break is on purpose !
// eslint-disable-next-line no-fallthrough
break;
case "securityDefinitions":
this.config.securitySchemes = spec[item];
// the missing break is on purpose !
// eslint-disable-next-line no-fallthrough
break;
default:
this.config.generic[item] = spec[item];
}
Expand Down
4 changes: 2 additions & 2 deletions lib/Parser.v3.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ export class ParserV3 extends ParserBase {
case "components":
if (spec.components.securitySchemes) {
this.config.securitySchemes = spec.components.securitySchemes;
} // the missing break is on purpose !
// eslint-disable-next-line no-fallthrough
}
break;
default:
this.config.generic[item] = spec[item];
}
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/js/test-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test("testing ${route.operationId}", (t) => {
fastify.inject(
{
method: "${route.method}",
url: "${data.generic.basePath ? data.generic.basePath : ""}${route.url}",
url: "${data.prefix ? data.prefix : ""}${route.url}",
payload: undefined,${
route.schema.body ? " //insert body data here!!" : ""
}
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/standaloneJS/test-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test("testing ${route.operationId}", (t) => {
fastify.inject(
{
method: "${route.method}",
url: "${data.generic.basePath ? data.generic.basePath : ""}${route.url}",
url: "${data.prefix ? data.prefix : ""}${route.url}",
payload: undefined,${
route.schema.body ? " //insert body data here!!" : ""
}
Expand Down

0 comments on commit 1c31511

Please sign in to comment.