RedHatInsights/insights-rbac-ui

View on GitHub
src/__mocks__/react-intl.js

Summary

Maintainability
A
0 mins
Test Coverage
import * as ReactIntl from 'react-intl';

// eslint-disable-next-line react/prop-types
const FormattedMessage = ({ defaultMessage = '' }) => defaultMessage;
const useIntl = () => ({
  formatMessage: (props) => props?.defaultMessage ?? '',
});

module.exports = {
  __esModule: true,
  ...ReactIntl,
  FormattedMessage,
  useIntl,
};