From a99d16a1bdb0dc538618b5f5d98d4c37e1296408 Mon Sep 17 00:00:00 2001 From: Gidi Meir Morris Date: Wed, 20 May 2020 11:59:48 +0100 Subject: [PATCH] fixed typos and oversights --- x-pack/plugins/encrypted_saved_objects/README.md | 2 +- x-pack/plugins/encrypted_saved_objects/server/mocks.ts | 1 - .../api_consumer_plugin/server/hidden_saved_object_routes.ts | 4 +++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/encrypted_saved_objects/README.md b/x-pack/plugins/encrypted_saved_objects/README.md index cefb47bb94404..2f0af9e866797 100644 --- a/x-pack/plugins/encrypted_saved_objects/README.md +++ b/x-pack/plugins/encrypted_saved_objects/README.md @@ -68,7 +68,7 @@ router.get( ... ``` -5. Instancicate an EncryptedSavedObjects client so that you can interact with Saved Objects whose content has been encrypted. +5. Instantiate an EncryptedSavedObjects client so that you can interact with Saved Objects whose content has been encrypted. ```typescript const esoClient = encryptedSavedObjects.getClient(); diff --git a/x-pack/plugins/encrypted_saved_objects/server/mocks.ts b/x-pack/plugins/encrypted_saved_objects/server/mocks.ts index 9287b99be8836..d5550703cf761 100644 --- a/x-pack/plugins/encrypted_saved_objects/server/mocks.ts +++ b/x-pack/plugins/encrypted_saved_objects/server/mocks.ts @@ -12,7 +12,6 @@ function createEncryptedSavedObjectsSetupMock() { registerType: jest.fn(), __legacyCompat: { registerLegacyAPI: jest.fn() }, usingEphemeralEncryptionKey: true, - startWithHiddenTypes: jest.fn(), } as jest.Mocked; } diff --git a/x-pack/test/encrypted_saved_objects_api_integration/fixtures/api_consumer_plugin/server/hidden_saved_object_routes.ts b/x-pack/test/encrypted_saved_objects_api_integration/fixtures/api_consumer_plugin/server/hidden_saved_object_routes.ts index ac3791be538f9..05da1814844cd 100644 --- a/x-pack/test/encrypted_saved_objects_api_integration/fixtures/api_consumer_plugin/server/hidden_saved_object_routes.ts +++ b/x-pack/test/encrypted_saved_objects_api_integration/fixtures/api_consumer_plugin/server/hidden_saved_object_routes.ts @@ -26,7 +26,9 @@ export function registerHiddenSORoutes( try { return response.ok({ body: await encryptedSavedObjects - .getClient([request.params.type]) + .getClient({ + includedHiddenTypes: [request.params.type], + }) .getDecryptedAsInternalUser(request.params.type, request.params.id, { namespace }), }); } catch (err) {