Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-react/src/internalAct.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-dom/src/events/ReactDOMEventListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()});

Expand Down