From 2a7ed64c312cd69eb0d1e52a2829cba5d8777b50 Mon Sep 17 00:00:00 2001 From: Ionatan Wiznia Date: Fri, 29 Dec 2023 13:27:53 -0600 Subject: [PATCH 1/4] Add dev env param --- src/libs/Network/enhanceParameters.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libs/Network/enhanceParameters.ts b/src/libs/Network/enhanceParameters.ts index 3fadeea7447c..479335254d34 100644 --- a/src/libs/Network/enhanceParameters.ts +++ b/src/libs/Network/enhanceParameters.ts @@ -1,6 +1,7 @@ import getPlatform from '@libs/getPlatform'; import CONFIG from '@src/CONFIG'; import * as NetworkStore from './NetworkStore'; +import * as Environment from "@libs/Environment/Environment"; /** * Does this command require an authToken? @@ -37,6 +38,8 @@ export default function enhanceParameters(command: string, parameters: Record Date: Fri, 29 Dec 2023 13:35:01 -0600 Subject: [PATCH 2/4] Fix tests --- tests/unit/enhanceParametersTest.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/enhanceParametersTest.js b/tests/unit/enhanceParametersTest.js index 513206b42614..6829732f1633 100644 --- a/tests/unit/enhanceParametersTest.js +++ b/tests/unit/enhanceParametersTest.js @@ -18,6 +18,7 @@ test('Enhance parameters adds correct parameters for Log command with no authTok testParameter: 'test', api_setCookie: false, email, + isFromDevEnv: true, platform: 'ios', referer: CONFIG.EXPENSIFY.EXPENSIFY_CASH_REFERER, }); @@ -36,6 +37,7 @@ test('Enhance parameters adds correct parameters for a command that requires aut testParameter: 'test', api_setCookie: false, email, + isFromDevEnv: true, platform: 'ios', authToken, referer: CONFIG.EXPENSIFY.EXPENSIFY_CASH_REFERER, From 6daaea63f1c786416155ff3529fbb7421eabf0eb Mon Sep 17 00:00:00 2001 From: Ionatan Wiznia Date: Fri, 29 Dec 2023 13:35:47 -0600 Subject: [PATCH 3/4] Style --- src/libs/Network/enhanceParameters.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/Network/enhanceParameters.ts b/src/libs/Network/enhanceParameters.ts index 479335254d34..6ab674e585be 100644 --- a/src/libs/Network/enhanceParameters.ts +++ b/src/libs/Network/enhanceParameters.ts @@ -1,7 +1,7 @@ import getPlatform from '@libs/getPlatform'; import CONFIG from '@src/CONFIG'; -import * as NetworkStore from './NetworkStore'; import * as Environment from "@libs/Environment/Environment"; +import * as NetworkStore from './NetworkStore'; /** * Does this command require an authToken? From 336332a2e8fb2cbab36abfda7a8e0a2464f46320 Mon Sep 17 00:00:00 2001 From: Ionatan Wiznia Date: Fri, 29 Dec 2023 13:40:39 -0600 Subject: [PATCH 4/4] Style --- src/libs/Network/enhanceParameters.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/Network/enhanceParameters.ts b/src/libs/Network/enhanceParameters.ts index 6ab674e585be..e14acda5ff56 100644 --- a/src/libs/Network/enhanceParameters.ts +++ b/src/libs/Network/enhanceParameters.ts @@ -1,6 +1,6 @@ +import * as Environment from '@libs/Environment/Environment'; import getPlatform from '@libs/getPlatform'; import CONFIG from '@src/CONFIG'; -import * as Environment from "@libs/Environment/Environment"; import * as NetworkStore from './NetworkStore'; /**