Disable bulkdelete for users point to old mongo proxy (#1964)

* Disable bulk delete if old mongo proxy

* Bug fix

* Fix unit tests

* Fix formatting
This commit is contained in:
Laurent Nguyen
2024-09-09 17:13:52 +02:00
committed by GitHub
parent cfc8196c4b
commit 2c2f0c8d7b
2 changed files with 32 additions and 14 deletions

View File

@@ -50,6 +50,7 @@ jest.mock("Common/MongoProxyClient", () => ({
}),
),
deleteDocuments: jest.fn(() => Promise.resolve()),
useMongoProxyEndpoint: jest.fn(() => true),
}));
jest.mock("Explorer/Controls/Editor/EditorReact", () => ({