Fix duplicate words tests (#25333)

* refactor: removed duplicated words in comments
* refactor: removed duplicate words in tests
This commit is contained in:
Vic Graf
2022-09-27 16:07:06 +02:00
committed by GitHub
parent cb5084d1c4
commit 5b59dd6400
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ module.exports = {
'space-before-blocks': ERROR,
'space-before-function-paren': OFF,
'valid-typeof': [ERROR, {requireStringLiterals: true}],
// Flow fails with with non-string literal keys
// Flow fails with non-string literal keys
'no-useless-computed-key': OFF,
// We apply these settings to files that should run on Node.
+1 -1
View File
@@ -139,7 +139,7 @@ function flushActWork(resolve, reject) {
// Once the scheduler queue is empty, run all the timers. The purpose of this
// is to force any pending fallbacks to commit. The public version of act does
// this with dev-only React runtime logic, but since our internal act needs to
// work work production builds of React, we have to cheat.
// work production builds of React, we have to cheat.
// $FlowFixMe: Flow doesn't know about global Jest object
jest.runOnlyPendingTimers();
if (Scheduler.unstable_hasPendingWork()) {
@@ -889,7 +889,7 @@ describe('InspectedElement', () => {
`);
});
it('should support objects with with inherited keys', async () => {
it('should support objects with inherited keys', async () => {
const Example = () => null;
const base = Object.create(Object.prototype, {
@@ -478,7 +478,7 @@ describe('InspectedElementContext', () => {
});
// @reactVersion >= 16.0
it('should support objects with with inherited keys', async () => {
it('should support objects with inherited keys', async () => {
const Example = () => null;
const base = Object.create(Object.prototype, {
+1 -1
View File
@@ -225,7 +225,7 @@ function dispatchEventOriginal(
if (allowReplay) {
if (isDiscreteEventThatRequiresHydration(domEventName)) {
// This this to be replayed later once the target is available.
// This to be replayed later once the target is available.
queueDiscreteEvent(
blockedOn,
domEventName,
@@ -356,7 +356,7 @@ describe('ReactShallowRenderer with hooks', () => {
);
});
it('should work with with forwardRef + any hook', () => {
it('should work with forwardRef + any hook', () => {
const SomeComponent = React.forwardRef((props, ref) => {
const randomNumberRef = React.useRef({number: Math.random()});