Skip to content

Commit 5b59dd6

Browse files
authored
Fix duplicate words tests (#25333)
* refactor: removed duplicated words in comments * refactor: removed duplicate words in tests
1 parent cb5084d commit 5b59dd6

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module.exports = {
5959
'space-before-blocks': ERROR,
6060
'space-before-function-paren': OFF,
6161
'valid-typeof': [ERROR, {requireStringLiterals: true}],
62-
// Flow fails with with non-string literal keys
62+
// Flow fails with non-string literal keys
6363
'no-useless-computed-key': OFF,
6464

6565
// We apply these settings to files that should run on Node.

packages/jest-react/src/internalAct.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function flushActWork(resolve, reject) {
139139
// Once the scheduler queue is empty, run all the timers. The purpose of this
140140
// is to force any pending fallbacks to commit. The public version of act does
141141
// 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.
143143
// $FlowFixMe: Flow doesn't know about global Jest object
144144
jest.runOnlyPendingTimers();
145145
if (Scheduler.unstable_hasPendingWork()) {

packages/react-devtools-shared/src/__tests__/inspectedElement-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ describe('InspectedElement', () => {
889889
`);
890890
});
891891

892-
it('should support objects with with inherited keys', async () => {
892+
it('should support objects with inherited keys', async () => {
893893
const Example = () => null;
894894

895895
const base = Object.create(Object.prototype, {

packages/react-devtools-shared/src/__tests__/legacy/inspectElement-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ describe('InspectedElementContext', () => {
478478
});
479479

480480
// @reactVersion >= 16.0
481-
it('should support objects with with inherited keys', async () => {
481+
it('should support objects with inherited keys', async () => {
482482
const Example = () => null;
483483

484484
const base = Object.create(Object.prototype, {

packages/react-dom/src/events/ReactDOMEventListener.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ function dispatchEventOriginal(
225225

226226
if (allowReplay) {
227227
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.
229229
queueDiscreteEvent(
230230
blockedOn,
231231
domEventName,

packages/react-test-renderer/src/__tests__/ReactShallowRendererHooks-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ describe('ReactShallowRenderer with hooks', () => {
356356
);
357357
});
358358

359-
it('should work with with forwardRef + any hook', () => {
359+
it('should work with forwardRef + any hook', () => {
360360
const SomeComponent = React.forwardRef((props, ref) => {
361361
const randomNumberRef = React.useRef({number: Math.random()});
362362

0 commit comments

Comments
 (0)