Fix duplicate words tests (#25333)
* refactor: removed duplicated words in comments * refactor: removed duplicate words in tests
Vic Graf committed
Sep 27, 2022 at 16:07 UTC
5b59dd640084f7bbb0a68988d45cecef8fa96a4d
6 files changed
+6
-6
.eslintrc.js
+1
-1
@@ -59,7 +59,7 @@ module.exports = {
59
'space-before-blocks': ERROR,
60
'space-before-function-paren': OFF,
61
'valid-typeof': [ERROR, {requireStringLiterals: true}],
62
- // Flow fails with with non-string literal keys
62
+ // Flow fails with non-string literal keys
63
'no-useless-computed-key': OFF,
64
65
// We apply these settings to files that should run on Node.
packages/jest-react/src/internalAct.js
+1
-1
@@ -139,7 +139,7 @@ function flushActWork(resolve, reject) {
139
// Once the scheduler queue is empty, run all the timers. The purpose of this
140
// is to force any pending fallbacks to commit. The public version of act does
141
// this with dev-only React runtime logic, but since our internal act needs to
142
- // work work production builds of React, we have to cheat.
142
+ // work production builds of React, we have to cheat.
143
// $FlowFixMe: Flow doesn't know about global Jest object
144
jest.runOnlyPendingTimers();
145
if (Scheduler.unstable_hasPendingWork()) {
packages/react-devtools-shared/src/__tests__/inspectedElement-test.js
+1
-1
@@ -889,7 +889,7 @@ describe('InspectedElement', () => {
889
`);
890
});
891
892
- it('should support objects with with inherited keys', async () => {
892
+ it('should support objects with inherited keys', async () => {
893
const Example = () => null;
894
895
const base = Object.create(Object.prototype, {
packages/react-devtools-shared/src/__tests__/legacy/inspectElement-test.js
+1
-1
@@ -478,7 +478,7 @@ describe('InspectedElementContext', () => {
478
});
479
480
// @reactVersion >= 16.0
481
- it('should support objects with with inherited keys', async () => {
481
+ it('should support objects with inherited keys', async () => {
482
const Example = () => null;
483
484
const base = Object.create(Object.prototype, {
packages/react-dom/src/events/ReactDOMEventListener.js
+1
-1
@@ -225,7 +225,7 @@ function dispatchEventOriginal(
225
226
if (allowReplay) {
227
if (isDiscreteEventThatRequiresHydration(domEventName)) {
228
- // This this to be replayed later once the target is available.
228
+ // This to be replayed later once the target is available.
229
queueDiscreteEvent(
230
blockedOn,
231
domEventName,
packages/react-test-renderer/src/__tests__/ReactShallowRendererHooks-test.js
+1
-1
@@ -356,7 +356,7 @@ describe('ReactShallowRenderer with hooks', () => {
356
);
357
});
358
359
- it('should work with with forwardRef + any hook', () => {
359
+ it('should work with forwardRef + any hook', () => {
360
const SomeComponent = React.forwardRef((props, ref) => {
361
const randomNumberRef = React.useRef({number: Math.random()});
362