From 5a6a761ffd3e205dec029363736ac94b903ba950 Mon Sep 17 00:00:00 2001 From: pgayvallet Date: Tue, 26 Jan 2021 09:48:43 +0100 Subject: [PATCH] fix mocks --- src/core/server/mocks.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/server/mocks.ts b/src/core/server/mocks.ts index e4c590ecfee3e..456119c32963a 100644 --- a/src/core/server/mocks.ts +++ b/src/core/server/mocks.ts @@ -71,6 +71,7 @@ export function pluginInitializerContextConfigMock(config: T) { const mock: jest.Mocked['config']> = { legacy: { globalConfig$: of(globalConfig) }, create: jest.fn().mockReturnValue(of(config)), + get: jest.fn().mockReturnValue(config), }; return mock;