style(tests): format gateway server test

main
Peter Steinberger 2025-12-21 00:22:46 +01:00
parent aae68e4f82
commit ef20053e72
1 changed files with 4 additions and 2 deletions

View File

@ -193,8 +193,10 @@ vi.mock("../config/config.js", () => {
gateway: testGatewayBind ? { bind: testGatewayBind } : undefined,
cron: (() => {
const cron: Record<string, unknown> = {};
if (typeof testCronEnabled === "boolean") cron.enabled = testCronEnabled;
if (typeof testCronStorePath === "string") cron.store = testCronStorePath;
if (typeof testCronEnabled === "boolean")
cron.enabled = testCronEnabled;
if (typeof testCronStorePath === "string")
cron.store = testCronStorePath;
return Object.keys(cron).length > 0 ? cron : undefined;
})(),
}),