diff --git a/less/documentDB.less b/less/documentDB.less index 8b18fe583..05ad22760 100644 --- a/less/documentDB.less +++ b/less/documentDB.less @@ -2371,7 +2371,7 @@ a:link { overflow-y: scroll; } -.t abs { +.tabs { position: relative; margin: 15px 0 25px 0; display: table; diff --git a/src/Common/dataAccess/deleteDocument.ts b/src/Common/dataAccess/deleteDocument.ts index a02750933..f20dc9cc8 100644 --- a/src/Common/dataAccess/deleteDocument.ts +++ b/src/Common/dataAccess/deleteDocument.ts @@ -64,11 +64,17 @@ export const deleteDocuments = async (collection: CollectionBase, documentIds: D const allResult = await Promise.all(promiseArray); const flatAllResult = Array.prototype.concat.apply([], allResult); - logConsoleInfo(`Successfully deleted ${getEntityName(flatAllResult.length > 1)}: ${flatAllResult.length} out of ${nbDocuments}`); + logConsoleInfo( + `Successfully deleted ${getEntityName(flatAllResult.length > 1)}: ${flatAllResult.length} out of ${nbDocuments}`, + ); // TODO: handle case result.length != nbDocuments return flatAllResult; } catch (error) { - handleError(error, "DeleteDocuments", `Error while deleting ${documentIds.length} ${getEntityName(documentIds.length > 1)}`); + handleError( + error, + "DeleteDocuments", + `Error while deleting ${documentIds.length} ${getEntityName(documentIds.length > 1)}`, + ); throw error; } finally { clearMessage(); diff --git a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2Mongo.test.tsx b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2Mongo.test.tsx index 976756048..79d5e2343 100644 --- a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2Mongo.test.tsx +++ b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2Mongo.test.tsx @@ -147,7 +147,7 @@ describe("Documents tab (Mongo API)", () => { }); it("renders by default the first document", async () => { - // expect(wrapper.findWhere((node) => node.text().includes(PROPERTY_VALUE)).exists()).toBeTruthy(); + expect(wrapper.findWhere((node) => node.text().includes(PROPERTY_VALUE)).exists()).toBeTruthy(); }); it("default buttons", async () => { diff --git a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTableComponent.test.tsx b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTableComponent.test.tsx index 3505fd78b..74e9f1500 100644 --- a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTableComponent.test.tsx +++ b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTableComponent.test.tsx @@ -13,12 +13,8 @@ describe("DocumentsTableComponent", () => { { [ID_HEADER]: "2", [PARTITION_KEY_HEADER]: "pk2" }, { [ID_HEADER]: "3", [PARTITION_KEY_HEADER]: "pk3" }, ], - onItemClicked: (index: number): void => { - index; - }, - onSelectedRowsChange: (selectedItemsIndices: Set): void => { - selectedItemsIndices; - }, + onItemClicked: (): void => {}, + onSelectedRowsChange: (): void => {}, selectedRows: new Set(), size: { height: 0,