"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const vitest_1 = require("vitest");
const env_js_1 = require("./env.js");
(0, vitest_1.describe)('isBrowserTelemetryEnabled', () => {
    (0, vitest_1.test)('returns true for CLOUD deployment', () => {
        (0, vitest_1.expect)((0, env_js_1.isBrowserTelemetryEnabled)(env_js_1.DeploymentTypeEnum.CLOUD)).toBe(true);
    });
    (0, vitest_1.test)('returns false for CLOUD_PREM deployment', () => {
        (0, vitest_1.expect)((0, env_js_1.isBrowserTelemetryEnabled)(env_js_1.DeploymentTypeEnum.CLOUD_PREM)).toBe(false);
    });
    (0, vitest_1.test)('returns false when deploymentType is undefined (fail-closed on ambiguity)', () => {
        (0, vitest_1.expect)((0, env_js_1.isBrowserTelemetryEnabled)(undefined)).toBe(false);
    });
    (0, vitest_1.test)("returns false for empty string (helm configmap renders '' when deploymentType override is missing)", () => {
        (0, vitest_1.expect)((0, env_js_1.isBrowserTelemetryEnabled)('')).toBe(false);
    });
    (0, vitest_1.test)('returns false for common typos that would bypass a blocklist check', () => {
        (0, vitest_1.expect)((0, env_js_1.isBrowserTelemetryEnabled)('cloud_prem')).toBe(false);
        (0, vitest_1.expect)((0, env_js_1.isBrowserTelemetryEnabled)('CLOUD-PREM')).toBe(false);
        (0, vitest_1.expect)((0, env_js_1.isBrowserTelemetryEnabled)('cloud-prem ')).toBe(false);
    });
});
//# sourceMappingURL=env.test.js.map