"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const vitest_1 = require("vitest");
const index_js_1 = require("./index.js");
(0, vitest_1.describe)('orgHasFeature', () => {
    (0, vitest_1.describe)('V1-only features', () => {
        const v1OnlyFeatures = [
            index_js_1.OrgFeature.LegacyAuditLogs,
            index_js_1.OrgFeature.LegacyObservability,
            index_js_1.OrgFeature.LegacySourceControl,
            index_js_1.OrgFeature.LegacySuperblocksOcr,
            index_js_1.OrgFeature.LegacySuperblocksEmail,
            index_js_1.OrgFeature.LegacyGoogleSheets,
            index_js_1.OrgFeature.LegacyExecutionToken,
            index_js_1.OrgFeature.LegacySecretsManagement,
            index_js_1.OrgFeature.LegacyStreamingIntegrations,
            index_js_1.OrgFeature.InternalLegacyEndpoints,
            index_js_1.OrgFeature.Workflows,
            index_js_1.OrgFeature.ScheduledJobs,
            index_js_1.OrgFeature.LegacyApps
        ];
        vitest_1.test.each(v1OnlyFeatures)('%s is available for V1 orgs', (feature) => {
            (0, vitest_1.expect)((0, index_js_1.orgHasFeature)(index_js_1.OrgVersion.V1, feature)).toBe(true);
        });
        vitest_1.test.each(v1OnlyFeatures)('%s is NOT available for V2 orgs', (feature) => {
            (0, vitest_1.expect)((0, index_js_1.orgHasFeature)(index_js_1.OrgVersion.V2, feature)).toBe(false);
        });
    });
    (0, vitest_1.describe)('V2-only features', () => {
        const v2OnlyFeatures = [index_js_1.OrgFeature.ReactApps, index_js_1.OrgFeature.Knowledge];
        vitest_1.test.each(v2OnlyFeatures)('%s is NOT available for V1 orgs', (feature) => {
            (0, vitest_1.expect)((0, index_js_1.orgHasFeature)(index_js_1.OrgVersion.V1, feature)).toBe(false);
        });
        vitest_1.test.each(v2OnlyFeatures)('%s is available for V2 orgs', (feature) => {
            (0, vitest_1.expect)((0, index_js_1.orgHasFeature)(index_js_1.OrgVersion.V2, feature)).toBe(true);
        });
    });
});
//# sourceMappingURL=index.test.js.map