fix(test): align analytics-env test with ANALYTICS_ENABLED=true default

The test still expected ANALYTICS_ENABLED to default to false, but
commit a3cd33f3 changed the default to true for the consent flow.
This commit is contained in:
SnapOtter
2026-06-08 19:32:00 +08:00
parent 931e15a6bd
commit 96764ec375
+2 -2
View File
@@ -28,10 +28,10 @@ describe("analytics env var validation", () => {
// ── ANALYTICS_ENABLED ───────────────────────────────────────────────────
it("ANALYTICS_ENABLED defaults to false", async () => {
it("ANALYTICS_ENABLED defaults to true", async () => {
const { loadEnv } = await import("../../../apps/api/src/lib/env.js");
const env = loadEnv();
expect(env.ANALYTICS_ENABLED).toBe(false);
expect(env.ANALYTICS_ENABLED).toBe(true);
});
it("ANALYTICS_ENABLED='false' transforms to boolean false", async () => {