Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
koba04 committed Aug 22, 2018
1 parent e09d8df commit 955a794
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/enzyme-test-suite/test/ReactWrapper-spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import {
} from './_helpers/version';
import realArrowFunction from './_helpers/realArrowFunction';
import sloppyReturnThis from './_helpers/untranspiledSloppyReturnThis';
import { isDeepStrictEqual } from 'util';

const getElementPropSelector = prop => x => x.props[prop];
const getWrapperPropSelector = prop => x => x.prop(prop);
Expand Down
8 changes: 6 additions & 2 deletions packages/enzyme/src/ShallowWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ class ShallowWrapper {
) {
spy = spyMethod(instance, 'shouldComponentUpdate');
} else if (isPureComponent(instance)) {
shouldRender = pureComponentShouldComponentUpdate(prevProps, props, state, instance.state);
shouldRender = pureComponentShouldComponentUpdate(
prevProps, props, state, instance.state,
);
}
if (props) this[UNRENDERED] = cloneElement(adapter, this[UNRENDERED], props);
this[RENDERER].render(this[UNRENDERED], nextContext);
Expand Down Expand Up @@ -483,7 +485,9 @@ class ShallowWrapper {
) {
spy = spyMethod(instance, 'shouldComponentUpdate');
} else if (isPureComponent(instance)) {
shouldRender = pureComponentShouldComponentUpdate(prevProps, instance.props, prevState, statePayload);
shouldRender = pureComponentShouldComponentUpdate(
prevProps, instance.props, prevState, statePayload,
);
}
// We don't pass the setState callback here
// to guarantee to call the callback after finishing the render
Expand Down

0 comments on commit 955a794

Please sign in to comment.