Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jgzuke committed Aug 16, 2018
1 parent 9cf359f commit 8dcef0a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/enzyme-adapter-utils/src/Utils.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import functionName from 'function.prototype.name';
import createMountWrapper from './createMountWrapper';
import createRenderWrapper from './createRenderWrapper';
import {
Portal,
} from 'react-is';
import createMountWrapper from './createMountWrapper';
import createRenderWrapper from './createRenderWrapper';

export { createMountWrapper, createRenderWrapper };

Expand Down
18 changes: 9 additions & 9 deletions packages/enzyme-test-suite/test/ShallowWrapper-spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ import {
sym,
} from 'enzyme/build/Utils';
import getAdapter from 'enzyme/build/getAdapter';
import {
Portal,
} from 'react-is';

import './_helpers/setupAdapters';
import {
Expand All @@ -35,9 +38,6 @@ import {
REACT16,
is,
} from './_helpers/version';
import {
Portal,
} from 'react-is';
import realArrowFunction from './_helpers/realArrowFunction';
import sloppyReturnThis from './_helpers/untranspiledSloppyReturnThis';

Expand Down Expand Up @@ -239,7 +239,7 @@ describe('shallow', () => {
<div className="foo">
{createPortal(
<div className="in-portal">InPortal</div>,
document.body
{ nodeType: 1 },
)}
</div>
);
Expand All @@ -265,7 +265,7 @@ describe('shallow', () => {
<Bar />
</div>
</div>,
document.body
{ nodeType: 1 },
)}
</div>
);
Expand All @@ -286,7 +286,7 @@ describe('shallow', () => {
const Foo = () => (
createPortal(
<div className="in-portal">InPortal</div>,
document.body
{ nodeType: 1 },
)
);

Expand Down Expand Up @@ -1107,7 +1107,7 @@ describe('shallow', () => {
<div>
{createPortal(
<div className="in-portal">InPortal</div>,
document.body
{ nodeType: 1 },
)}
</div>
);
Expand Down Expand Up @@ -1419,13 +1419,13 @@ describe('shallow', () => {
<div>
{createPortal(
<div className="in-portal">InPortal</div>,
document.body
{ nodeType: 1 },
)}
</div>
);

const wrapper = shallow(<Foo />);
const portal = wrapper.findWhere(node => node.type() === Portal)
const portal = wrapper.findWhere(node => node.type() === Portal);
expect(portal.debug())
.to.equal(`<Portal>
<div className="in-portal">
Expand Down

0 comments on commit 8dcef0a

Please sign in to comment.