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

This commit is contained in:
Nox911 2019-01-14 10:45:05 +03:00 committed by GitHub
parent 93b452e9c0
commit e30318eb66
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} />
);