mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user