Skip to content

Commit

Permalink
api test default check inversion
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBrax committed Apr 17, 2024
1 parent dfce8b1 commit c28055f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@
"engines": {
"node": ">=20"
}
}
}
4 changes: 2 additions & 2 deletions server/src/Extend/express-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export function applyExpressApiFunction(app: express.Express) {
"http.api",
`API error ${status} returned: ${JSON.stringify(data)}`
);
console.trace(
/* console.trace(
`API error ${status} returned: ${JSON.stringify(data)}`
);
); */
}
};
}
2 changes: 1 addition & 1 deletion server/tests/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ describe("settings", () => {
console.error("Field is undefined", key);
continue;
}
if ("default" in field && !field.default) {
if (!("default" in field) || !field.default) {
console.error("Field has no default", key);
continue;
}
Expand Down

0 comments on commit c28055f

Please sign in to comment.