"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const live_env_1 = require("@ledgerhq/live-env");
const getEnvironmentParams_1 = __importDefault(require("./getEnvironmentParams"));
describe("getEnvironmentParams", () => {
    it("Should return production env urls for the PROD environment", async () => {
        (0, live_env_1.setEnv)("CLOUD_SYNC_API_PROD", "cloud_sync_api_prod_url");
        (0, live_env_1.setEnv)("TRUSTCHAIN_API_PROD", "trustchain_api_prod_url");
        const { cloudSyncApiBaseUrl, trustchainApiBaseUrl } = (0, getEnvironmentParams_1.default)("PROD");
        expect(cloudSyncApiBaseUrl).toBe("cloud_sync_api_prod_url");
        expect(trustchainApiBaseUrl).toBe("trustchain_api_prod_url");
    });
    it("Should return staging env urls for the STAGING environment", async () => {
        (0, live_env_1.setEnv)("CLOUD_SYNC_API_STAGING", "cloud_sync_api_staging_url");
        (0, live_env_1.setEnv)("TRUSTCHAIN_API_STAGING", "trustchain_api_staging_url");
        const { cloudSyncApiBaseUrl, trustchainApiBaseUrl } = (0, getEnvironmentParams_1.default)("STAGING");
        expect(cloudSyncApiBaseUrl).toBe("cloud_sync_api_staging_url");
        expect(trustchainApiBaseUrl).toBe("trustchain_api_staging_url");
    });
});
//# sourceMappingURL=getEnvironmentParams.test.js.map