From 53dd522dc4dc9141cf7152dd6357df51fd965a73 Mon Sep 17 00:00:00 2001 From: UladzislauKutarkin <72550466+UladzislauKutarkin@users.noreply.github.com> Date: Tue, 24 Oct 2023 23:29:34 +0400 Subject: [PATCH] Delete test/jest/__mock__/reactItl.mock.js --- test/jest/__mock__/reactItl.mock.js | 33 ----------------------------- 1 file changed, 33 deletions(-) delete mode 100644 test/jest/__mock__/reactItl.mock.js diff --git a/test/jest/__mock__/reactItl.mock.js b/test/jest/__mock__/reactItl.mock.js deleted file mode 100644 index e58bb7be..00000000 --- a/test/jest/__mock__/reactItl.mock.js +++ /dev/null @@ -1,33 +0,0 @@ -import React from 'react'; - -jest.mock('react-intl', () => { - const intl = { - formatMessage: ({ id }) => id, - formatNumber: (value) => value - }; - - return { - ...jest.requireActual('react-intl'), - FormattedMessage: jest.fn(({ id, values, children }) => { - if (children) { - return children([id]); - } - - const valuesString = values ? (`-${JSON.stringify(values)}`) : ''; - - return `${id}${valuesString}`; - }), - FormattedTime: jest.fn(({ value, children }) => { - if (children) { - return children([value]); - } - - return value; - }), - FormattedNumber: jest.fn((value) => { - return value; - }), - useIntl: () => intl, - injectIntl: (Component) => (props) => , - }; -});