From bc61362e19d02df75b7a371ddbefec1b123fa603 Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Wed, 23 Oct 2019 16:23:46 +0200 Subject: [PATCH] Migrate react-i18next translate in ui-tests --- scm-ui/ui-tests/i18n.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm-ui/ui-tests/i18n.ts b/scm-ui/ui-tests/i18n.ts index cf44d375b0..5616f755fb 100644 --- a/scm-ui/ui-tests/i18n.ts +++ b/scm-ui/ui-tests/i18n.ts @@ -1,6 +1,6 @@ jest.mock("react-i18next", () => ({ // this mock makes sure any components using the translate HoC receive the t function as a prop - translate: () => (Component: any) => { + withTranslation: () => (Component: any) => { Component.defaultProps = { ...Component.defaultProps, t: (key: string) => key