diff --git a/lib/constants.js b/lib/constants.js index 90e755c..918fb7a 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -24,8 +24,8 @@ const ENDPOINT_STAGE_INTERNAL = 'https://storage-state-.stg.app-builder. const ALLOWED_REGIONS = [ // first region is the default region 'amer', - 'apac', 'emea' + // soon to come: 'apac' ] // can be overwritten by env diff --git a/test/AdobeState.test.js b/test/AdobeState.test.js index fb79531..79687b1 100644 --- a/test/AdobeState.test.js +++ b/test/AdobeState.test.js @@ -659,7 +659,7 @@ describe('private methods', () => { }) test('no params, region set', async () => { - const region = 'apac' + const region = 'emea' const env = PROD_ENV mockCLIEnv.mockReturnValue(env) @@ -676,7 +676,7 @@ describe('private methods', () => { mockCLIEnv.mockReturnValue(env) await expect(AdobeState.init({ ...fakeCredentials, region })).rejects - .toThrow('[AdobeStateLib:ERROR_BAD_ARGUMENT] /region must be equal to one of the allowed values: amer, apac, emea') + .toThrow('[AdobeStateLib:ERROR_BAD_ARGUMENT] /region must be equal to one of the allowed values: amer, emea') }) }) @@ -720,7 +720,7 @@ describe('private methods', () => { jest.resetModules() process.env.AIO_STATE_ENDPOINT = 'https://custom.abc.com' const env = STAGE_ENV - const region = 'apac' + const region = 'amer' mockCLIEnv.mockReturnValue(env) // need to instantiate a new store, when env changes