Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasecdb committed May 27, 2019
1 parent 5a792bb commit 015a9b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
12 changes: 3 additions & 9 deletions react/__mocks__/vtex.native-types.tsx
Original file line number Diff line number Diff line change
@@ -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
4 changes: 0 additions & 4 deletions react/legacy/Footer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,4 @@ describe('<Footer /> component', () => {
expect(getByText(title)).toBeTruthy()
})
})

it('should export static schema with title', () => {
expect(Footer.schema).toEqual(expect.objectContaining({title: expect.any(String)}))
})
})
2 changes: 2 additions & 0 deletions react/legacy/__snapshots__/Footer.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ exports[`<Footer /> component should match the snapshot 1`] = `
>
<div
class="pointer"
role="button"
tabindex="0"
>
<div>
<span
Expand Down

0 comments on commit 015a9b5

Please sign in to comment.