Skip to content

Commit

Permalink
Replaced rendering function.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomek committed May 31, 2019
1 parent 03b57c3 commit 2116152
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/inspector/components/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe( '<InspectorUI />', () => {
TestEditor.create( editor2Element )
] ).then( ( [ editor1, editor2 ] ) => {
editors = new Map( [ [ 'first', editor1 ], [ 'second', editor2 ] ] );
wrapper = mount(
wrapper = shallow(
<InspectorUI editors={editors} />,
{ attachTo: container }
);
Expand Down Expand Up @@ -70,7 +70,7 @@ describe( '<InspectorUI />', () => {
it( 'restores state#height from the storage and sets it to body', () => {
window.localStorage.setItem( 'ck5-inspector-height', '123px' );

const wrapper = mount(
const wrapper = shallow(
<InspectorUI editors={editors} />,
{ attachTo: container }
);
Expand All @@ -84,7 +84,7 @@ describe( '<InspectorUI />', () => {
it( 'restores state#isCollapsed from the storage', () => {
window.localStorage.setItem( 'ck5-inspector-is-collapsed', 'true' );

const wrapper = mount(
const wrapper = shallow(
<InspectorUI editors={editors} />,
{ attachTo: container }
);
Expand All @@ -97,7 +97,7 @@ describe( '<InspectorUI />', () => {
it( 'restores state#activeTab from the storage', () => {
window.localStorage.setItem( 'ck5-inspector-active-tab-name', 'Commands' );

const wrapper = mount(
const wrapper = shallow(
<InspectorUI editors={editors} />,
{ attachTo: container }
);
Expand Down

0 comments on commit 2116152

Please sign in to comment.