Replace shallow and mount to shallowWithIntl and mountWithIntl (#28563)

This commit is contained in:
Nox911 2019-01-11 17:35:48 +03:00 committed by GitHub
parent 193d487e16
commit bbad05070f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@
*/
import { mount, shallow } from 'enzyme';
import { mountWithIntl, shallowWithIntl } from 'test_utils/enzyme_helpers';
import React from 'react';
import { Overrides } from './overrides';
@ -26,7 +26,7 @@ describe('Overrides', () => {
test('render overrides', () => {
const props = getProps();
const component = shallow(
const component = shallowWithIntl(
<Overrides {...props} />
);
@ -40,7 +40,7 @@ describe('Overrides', () => {
const props = getProps();
props.overrides.format = FORMAT_1;
const component = mount(
const component = mountWithIntl(
<Overrides {...props} />
);