From e9ad009f793f488456eca695f073fdf2a2785847 Mon Sep 17 00:00:00 2001 From: hardiknai-techm Date: Wed, 11 Aug 2021 19:49:17 +0530 Subject: [PATCH] added constants/index.ts file in ignore --- .eslintignore | 1 + src/Common/Constants/index.ts | 1 + src/Common/MongoProxyClient.ts | 3 +-- .../__snapshots__/UploadItemsPane.test.tsx.snap | 4 +++- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.eslintignore b/.eslintignore index 33de7912c..39c832215 100644 --- a/.eslintignore +++ b/.eslintignore @@ -6,6 +6,7 @@ src/Api/Apis.ts src/AuthType.ts src/Bindings/BindingHandlersRegisterer.ts src/Bindings/ReactBindingHandler.ts +src/Common/Constants/index.ts src/Common/CosmosClient.test.ts src/Common/CosmosClient.ts src/Common/DataAccessUtilityBase.test.ts diff --git a/src/Common/Constants/index.ts b/src/Common/Constants/index.ts index ee34bf8a1..e598a7e35 100644 --- a/src/Common/Constants/index.ts +++ b/src/Common/Constants/index.ts @@ -31,6 +31,7 @@ import * as TagNames from './TagNames'; import * as TerminalQueryParams from './TerminalQueryParams'; import * as TryCosmosExperience from './TryCosmosExperience'; import * as Urls from './Urls'; + const StyleConstants = require("less-vars-loader!../../less/Common/Constants.less"); export { diff --git a/src/Common/MongoProxyClient.ts b/src/Common/MongoProxyClient.ts index 2945f1288..3893af473 100644 --- a/src/Common/MongoProxyClient.ts +++ b/src/Common/MongoProxyClient.ts @@ -79,8 +79,7 @@ export function queryDocuments( }; const endpoint = getEndpoint() || ""; - - const headers = { + const headers: HeadersInit = { ...defaultHeaders, ...authHeaders(), [CosmosSDKConstants.HttpHeaders.IsQuery]: "true", diff --git a/src/Explorer/Panes/UploadItemsPane/__snapshots__/UploadItemsPane.test.tsx.snap b/src/Explorer/Panes/UploadItemsPane/__snapshots__/UploadItemsPane.test.tsx.snap index f4f8696dc..57939c19b 100644 --- a/src/Explorer/Panes/UploadItemsPane/__snapshots__/UploadItemsPane.test.tsx.snap +++ b/src/Explorer/Panes/UploadItemsPane/__snapshots__/UploadItemsPane.test.tsx.snap @@ -15,7 +15,9 @@ exports[`Upload Items Pane should render Default properly 1`] = ` multiple={true} onUpload={[Function]} tabIndex={0} - tooltip="Select one or more JSON files to upload. Each file can contain a single JSON document or an array of JSON documents. The combined size of all files in an individual upload operation must be less than 2 MB. You can perform multiple upload operations for larger data sets." + tooltip="Select one or more JSON files to upload. Each file can contain a single JSON document or an array of JSON + documents. The combined size of all files in an individual upload operation must be less than 2 MB. You + can perform multiple upload operations for larger data sets." />