From 015a9b55198a37bd87470a30c7ad57954f8e9f51 Mon Sep 17 00:00:00 2001 From: Lucas Cordeiro Date: Mon, 27 May 2019 15:21:19 -0300 Subject: [PATCH] Fix tests --- react/__mocks__/vtex.native-types.tsx | 12 +++--------- react/legacy/Footer.test.js | 4 ---- react/legacy/__snapshots__/Footer.test.js.snap | 2 ++ 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/react/__mocks__/vtex.native-types.tsx b/react/__mocks__/vtex.native-types.tsx index f8a5d81..f740ec1 100644 --- a/react/__mocks__/vtex.native-types.tsx +++ b/react/__mocks__/vtex.native-types.tsx @@ -1,11 +1,5 @@ -import { FormattedMessage, InjectedIntl } from 'react-intl' +import React from 'react' -export const IOMessage = FormattedMessage +export const IOMessage: React.FC<{ id: string }> = ({ id }) => <>{id} -export const formatIOMessage = ({ - id, - intl, -}: { - id: string - intl: InjectedIntl -}) => intl.formatMessage({ id }) +export const formatIOMessage = ({ id }: { id: string }) => id diff --git a/react/legacy/Footer.test.js b/react/legacy/Footer.test.js index 8baa0f8..50f9a20 100644 --- a/react/legacy/Footer.test.js +++ b/react/legacy/Footer.test.js @@ -89,8 +89,4 @@ describe('