fix typo (#13955)
Joseph committed
Oct 27, 2018 at 19:59 UTC
95f98a1873566288f6854851ad7604fc0eb3476b
8 files changed
+14
-14
fixtures/fiber-debugger/src/describeFibers.js
+4
-4
@@ -90,17 +90,17 @@ export default function describeFibers(rootFiber, workInProgress) {
90
const workInProgressID = acknowledgeFiber(workInProgress);
91
92
let currentIDs = new Set();
93
- function markAsCurent(id) {
93
+ function markAsCurrent(id) {
94
currentIDs.add(id);
95
const fiber = descriptions[id];
96
if (fiber.sibling) {
97
- markAsCurent(fiber.sibling);
97
+ markAsCurrent(fiber.sibling);
98
}
99
if (fiber.child) {
100
- markAsCurent(fiber.child);
100
+ markAsCurrent(fiber.child);
101
}
102
}
103
- markAsCurent(rootID);
103
+ markAsCurrent(rootID);
104
105
return {
106
descriptions,
packages/react-dom/src/__tests__/utils/ReactDOMServerIntegrationTestUtils.js
+1
-1
@@ -41,7 +41,7 @@ module.exports = function(initModules) {
41
if (console.error.calls && console.error.calls.reset) {
42
console.error.calls.reset();
43
} else {
44
- // TODO: Rewrite tests that use this helper to enumerate expeceted errors.
44
+ // TODO: Rewrite tests that use this helper to enumerate expected errors.
45
// This will enable the helper to use the .toWarnDev() matcher instead of spying.
46
spyOnDev(console, 'error');
47
}
packages/react-dom/src/events/__tests__/ChangeEventPlugin-test.internal.js
+1
-1
@@ -661,7 +661,7 @@ describe('ChangeEventPlugin', () => {
661
type="text"
662
value={controlledValue}
663
onChange={() => {
664
- // Does nothing. Parent handler is reponsible for updating.
664
+ // Does nothing. Parent handler is responsible for updating.
665
}}
666
/>
667
</div>
packages/react-reconciler/src/__tests__/ReactIncremental-test.internal.js
+1
-1
@@ -2430,7 +2430,7 @@ describe('ReactIncremental', () => {
2430
);
2431
2432
// Trigger an update in the middle of the tree
2433
- // This is necessary to reproduce the error as it curently exists.
2433
+ // This is necessary to reproduce the error as it currently exists.
2434
instance.setState({
2435
throwError: true,
2436
});
packages/react-reconciler/src/__tests__/ReactIncrementalErrorHandling-test.internal.js
+3
-3
@@ -85,7 +85,7 @@ describe('ReactIncrementalErrorHandling', () => {
85
</ErrorBoundary>,
86
);
87
88
- // Start rendering asynchronsouly
88
+ // Start rendering asynchronously
89
ReactNoop.flushThrough([
90
'ErrorBoundary (try)',
91
'Indirection',
@@ -178,7 +178,7 @@ describe('ReactIncrementalErrorHandling', () => {
178
</ErrorBoundary>,
179
);
180
181
- // Start rendering asynchronsouly
181
+ // Start rendering asynchronously
182
ReactNoop.flushThrough([
183
'ErrorBoundary (try)',
184
'Indirection',
@@ -276,7 +276,7 @@ describe('ReactIncrementalErrorHandling', () => {
276
// Schedule a low priority update to hide the child
277
parent.current.setState({hideChild: true});
278
279
- // Before the low priority update is flushed, synchronsouly trigger an
279
+ // Before the low priority update is flushed, synchronously trigger an
280
// error in the child.
281
ReactNoop.flushSync(() => {
282
ReactNoop.render(<Parent ref={parent} childIsBroken={true} />);
packages/react/src/__tests__/ReactJSXElementValidator-test.js
+1
-1
@@ -323,7 +323,7 @@ describe('ReactJSXElementValidator', () => {
323
);
324
});
325
326
- it('should warn if getDefaultProps is specificed on the class', () => {
326
+ it('should warn if getDefaultProps is specified on the class', () => {
327
class GetDefaultPropsComponent extends React.Component {
328
render() {
329
return <span>{this.props.prop}</span>;
packages/react/src/__tests__/ReactProfiler-test.internal.js
+2
-2
@@ -503,7 +503,7 @@ describe('Profiler', () => {
503
});
504
505
// Only call profile updates for paths that have re-rendered
506
- // Since "inner" is beneath a pure compoent, it isn't called
506
+ // Since "inner" is beneath a pure component, it isn't called
507
expect(callback).toHaveBeenCalledTimes(2);
508
expect(callback.mock.calls[0][0]).toBe('middle');
509
expect(callback.mock.calls[1][0]).toBe('outer');
@@ -667,7 +667,7 @@ describe('Profiler', () => {
667
// Simulate time moving forward while frame is paused.
668
advanceTimeBy(50); // 10 -> 60
669
670
- // Flush the remaninig work,
670
+ // Flush the remaining work,
671
// Which should take an additional 10ms of simulated time.
672
expect(renderer).toFlushAndYield(['Yield:10', 'Yield:17']);
673
expect(callback).toHaveBeenCalledTimes(2);
packages/shared/reactProdInvariant.js
+1
-1
@@ -23,7 +23,7 @@ function reactProdInvariant(code: string): void {
23
for (let argIdx = 0; argIdx < argCount; argIdx++) {
24
url += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);
25
}
26
- // Rename it so that our build transform doesn't atttempt
26
+ // Rename it so that our build transform doesn't attempt
27
// to replace this invariant() call with reactProdInvariant().
28
const i = invariant;
29
i(