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