Fix duplicate words tests (#25333)
* refactor: removed duplicated words in comments * refactor: removed duplicate words in tests
This commit is contained in:
parent
cb5084d1c4
commit
5b59dd6400
|
@ -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.
|
||||
|
|
|
@ -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, {
|
||||
|
|
|
@ -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()});
|
||||
|
||||
|
|
Loading…
Reference in New Issue