mirror of
https://github.com/alexgetmancom/miband-bot.git
synced 2026-09-05 18:16:18 +03:00
fix sync reliability and runtime handling
This commit is contained in:
@@ -31,4 +31,8 @@ describe("loadConfig", () => {
|
||||
const config = loadConfig({ BOT_MODE: "http-only", ENABLE_FDS_SLEEP_DETAILS: "false" });
|
||||
expect(config.ENABLE_FDS_SLEEP_DETAILS).toBe(false);
|
||||
});
|
||||
|
||||
test("rejects an invalid timezone", () => {
|
||||
expect(() => loadConfig({ BOT_MODE: "http-only", TZ: "not/a-timezone" })).toThrow(ConfigurationError);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user