style(tests): format gateway server test
parent
aae68e4f82
commit
ef20053e72
|
|
@ -193,8 +193,10 @@ vi.mock("../config/config.js", () => {
|
||||||
gateway: testGatewayBind ? { bind: testGatewayBind } : undefined,
|
gateway: testGatewayBind ? { bind: testGatewayBind } : undefined,
|
||||||
cron: (() => {
|
cron: (() => {
|
||||||
const cron: Record<string, unknown> = {};
|
const cron: Record<string, unknown> = {};
|
||||||
if (typeof testCronEnabled === "boolean") cron.enabled = testCronEnabled;
|
if (typeof testCronEnabled === "boolean")
|
||||||
if (typeof testCronStorePath === "string") cron.store = testCronStorePath;
|
cron.enabled = testCronEnabled;
|
||||||
|
if (typeof testCronStorePath === "string")
|
||||||
|
cron.store = testCronStorePath;
|
||||||
return Object.keys(cron).length > 0 ? cron : undefined;
|
return Object.keys(cron).length > 0 ? cron : undefined;
|
||||||
})(),
|
})(),
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue