From 3d04a47182d603bcad8f7e15b787d9625a38117c Mon Sep 17 00:00:00 2001 From: streamich Date: Tue, 11 Feb 2020 18:14:02 +0100 Subject: [PATCH] =?UTF-8?q?test:=20=F0=9F=92=8D=20fix=20expression=20mocks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/expressions/public/mocks.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/expressions/public/mocks.tsx b/src/plugins/expressions/public/mocks.tsx index 02a347e2c309d..70760ada83955 100644 --- a/src/plugins/expressions/public/mocks.tsx +++ b/src/plugins/expressions/public/mocks.tsx @@ -31,9 +31,11 @@ export type Start = jest.Mocked; const createSetupContract = (): Setup => { const setupContract: Setup = { + getFunction: jest.fn(), getFunctions: jest.fn(), getRenderer: jest.fn(), getRenderers: jest.fn(), + getType: jest.fn(), getTypes: jest.fn(), registerFunction: jest.fn(), registerRenderer: jest.fn(), @@ -66,9 +68,11 @@ const createStartContract = (): Start => { ExpressionDataHandler: jest.fn(), ExpressionLoader: jest.fn(), ExpressionRenderHandler: jest.fn(), + getFunction: jest.fn(), getFunctions: jest.fn(), getRenderer: jest.fn(), getRenderers: jest.fn(), + getType: jest.fn(), getTypes: jest.fn(), loader: jest.fn(), ReactExpressionRenderer: jest.fn(props => <>),