mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Fix codestyle for typeof comparison (#19928)
This commit is contained in:
1 parent
8657ad4278
commit
43363e2795
1 file changed
+3
-3
@@ -1248,7 +1248,7 @@ function mountEffect(
|
||||
): void {
|
||||
if (__DEV__) {
|
||||
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
|
||||
if ('undefined' !== typeof jest) {
|
||||
if (typeof jest !== 'undefined') {
|
||||
warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber);
|
||||
}
|
||||
}
|
||||
@@ -1276,7 +1276,7 @@ function updateEffect(
|
||||
): void {
|
||||
if (__DEV__) {
|
||||
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
|
||||
if ('undefined' !== typeof jest) {
|
||||
if (typeof jest !== 'undefined') {
|
||||
warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber);
|
||||
}
|
||||
}
|
||||
@@ -1771,7 +1771,7 @@ function dispatchAction<S, A>(
|
||||
}
|
||||
if (__DEV__) {
|
||||
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
|
||||
if ('undefined' !== typeof jest) {
|
||||
if (typeof jest !== 'undefined') {
|
||||
warnIfNotScopedWithMatchingAct(fiber);
|
||||
warnIfNotCurrentlyActingUpdatesInDev(fiber);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user