Skip to content

Commit 8ad1015

Browse files
committed
Fix lint errors
1 parent 5139a7f commit 8ad1015

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/enzyme-test-suite/test/ReactWrapper-spec.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ import {
4343
} from './_helpers/version';
4444
import realArrowFunction from './_helpers/realArrowFunction';
4545
import sloppyReturnThis from './_helpers/untranspiledSloppyReturnThis';
46-
import { isDeepStrictEqual } from 'util';
4746

4847
const getElementPropSelector = prop => x => x.props[prop];
4948
const getWrapperPropSelector = prop => x => x.prop(prop);

packages/enzyme/src/ShallowWrapper.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,9 @@ class ShallowWrapper {
351351
) {
352352
spy = spyMethod(instance, 'shouldComponentUpdate');
353353
} else if (isPureComponent(instance)) {
354-
shouldRender = pureComponentShouldComponentUpdate(prevProps, props, state, instance.state);
354+
shouldRender = pureComponentShouldComponentUpdate(
355+
prevProps, props, state, instance.state,
356+
);
355357
}
356358
if (props) this[UNRENDERED] = cloneElement(adapter, this[UNRENDERED], props);
357359
this[RENDERER].render(this[UNRENDERED], nextContext);
@@ -483,7 +485,9 @@ class ShallowWrapper {
483485
) {
484486
spy = spyMethod(instance, 'shouldComponentUpdate');
485487
} else if (isPureComponent(instance)) {
486-
shouldRender = pureComponentShouldComponentUpdate(prevProps, instance.props, prevState, statePayload);
488+
shouldRender = pureComponentShouldComponentUpdate(
489+
prevProps, instance.props, prevState, statePayload,
490+
);
487491
}
488492
// We don't pass the setState callback here
489493
// to guarantee to call the callback after finishing the render

0 commit comments

Comments
 (0)