Skip to content

Commit 9ec4453

Browse files
authored
Bump Prettier (#17811)
* Bump Prettier * Reformat * Use non-deprecated option
1 parent f71d9c3 commit 9ec4453

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/ReactShallowRenderer.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,10 @@ class ReactShallowRenderer {
295295
first: null,
296296
dispatch: null,
297297
});
298-
const dispatch: Dispatch<
299-
A,
300-
> = (queue.dispatch = (this._dispatchAction.bind(this, queue): any));
298+
const dispatch: Dispatch<A> = (queue.dispatch = (this._dispatchAction.bind(
299+
this,
300+
queue,
301+
): any));
301302
return [workInProgressHook.memoizedState, dispatch];
302303
}
303304
};
@@ -529,7 +530,7 @@ class ReactShallowRenderer {
529530
'ReactShallowRenderer render(): Invalid component element.%s',
530531
typeof element === 'function'
531532
? ' Instead of passing a component class, make sure to instantiate ' +
532-
'it by passing it to React.createElement.'
533+
'it by passing it to React.createElement.'
533534
: '',
534535
);
535536
element = ((element: any): ReactElement);
@@ -543,14 +544,15 @@ class ReactShallowRenderer {
543544
);
544545
invariant(
545546
isForwardRef(element) ||
546-
(typeof element.type === 'function' || isMemo(element)),
547+
typeof element.type === 'function' ||
548+
isMemo(element),
547549
'ReactShallowRenderer render(): Shallow rendering works only with custom ' +
548550
'components, but the provided element type was `%s`.',
549551
Array.isArray(element.type)
550552
? 'array'
551553
: element.type === null
552-
? 'null'
553-
: typeof element.type,
554+
? 'null'
555+
: typeof element.type,
554556
);
555557

556558
if (this._rendering) {

0 commit comments

Comments
 (0)