src/index.js
function renderWithIntl (node, { context, childContextTypes } = {}) {
    const intlProvider = new IntlProvider({locale: locale, messages }, {});
    const { intl } = intlProvider.getChildContext();
    return render(React.cloneElement(node, { intl }), {
        context: Object.assign({}, context, {intl}),
        childContextTypes: Object.assign({}, { intl: intlShape }, childContextTypes)
    });
}
function renderWithIntl (node, { context, childContextTypes } = {}) {
    const intlProvider = new IntlProvider({locale: locale, messages }, {});
    const { intl } = intlProvider.getChildContext();
    return render(React.cloneElement(node, { intl }), {
        context: Object.assign({}, context, {intl}),
        childContextTypes: Object.assign({}, { intl: intlShape }, childContextTypes)
    });
}
function renderWithIntl ( node , { context , childContextTypes } = { } ) { const intlProvider = new IntlProvider ( { locale : locale , messages } , { } ) ; const { intl } = intlProvider . getChildContext ( ) ; return render ( React . cloneElement ( node , { intl } ) , { context : Object . assign ( { } , context , { intl } ) , childContextTypes : Object . assign ( { } , { intl : intlShape } , childContextTypes ) } ) ; }
Equivalent to enzyme's 'render' method.
@param {string} node React Component that requires react-intl.
@return {object}
Equivalent to enzyme s render method .