Skip to content

Commit

Permalink
fix typo (facebook#13955)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kachulio1 authored and nhunzaker committed Oct 27, 2018
1 parent e217f2f commit 95f98a1
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions fixtures/fiber-debugger/src/describeFibers.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,17 @@ export default function describeFibers(rootFiber, workInProgress) {
const workInProgressID = acknowledgeFiber(workInProgress);

let currentIDs = new Set();
function markAsCurent(id) {
function markAsCurrent(id) {
currentIDs.add(id);
const fiber = descriptions[id];
if (fiber.sibling) {
markAsCurent(fiber.sibling);
markAsCurrent(fiber.sibling);
}
if (fiber.child) {
markAsCurent(fiber.child);
markAsCurrent(fiber.child);
}
}
markAsCurent(rootID);
markAsCurrent(rootID);

return {
descriptions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = function(initModules) {
if (console.error.calls && console.error.calls.reset) {
console.error.calls.reset();
} else {
// TODO: Rewrite tests that use this helper to enumerate expeceted errors.
// TODO: Rewrite tests that use this helper to enumerate expected errors.
// This will enable the helper to use the .toWarnDev() matcher instead of spying.
spyOnDev(console, 'error');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ describe('ChangeEventPlugin', () => {
type="text"
value={controlledValue}
onChange={() => {
// Does nothing. Parent handler is reponsible for updating.
// Does nothing. Parent handler is responsible for updating.
}}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2430,7 +2430,7 @@ describe('ReactIncremental', () => {
);

// Trigger an update in the middle of the tree
// This is necessary to reproduce the error as it curently exists.
// This is necessary to reproduce the error as it currently exists.
instance.setState({
throwError: true,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('ReactIncrementalErrorHandling', () => {
</ErrorBoundary>,
);

// Start rendering asynchronsouly
// Start rendering asynchronously
ReactNoop.flushThrough([
'ErrorBoundary (try)',
'Indirection',
Expand Down Expand Up @@ -178,7 +178,7 @@ describe('ReactIncrementalErrorHandling', () => {
</ErrorBoundary>,
);

// Start rendering asynchronsouly
// Start rendering asynchronously
ReactNoop.flushThrough([
'ErrorBoundary (try)',
'Indirection',
Expand Down Expand Up @@ -276,7 +276,7 @@ describe('ReactIncrementalErrorHandling', () => {
// Schedule a low priority update to hide the child
parent.current.setState({hideChild: true});

// Before the low priority update is flushed, synchronsouly trigger an
// Before the low priority update is flushed, synchronously trigger an
// error in the child.
ReactNoop.flushSync(() => {
ReactNoop.render(<Parent ref={parent} childIsBroken={true} />);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ describe('ReactJSXElementValidator', () => {
);
});

it('should warn if getDefaultProps is specificed on the class', () => {
it('should warn if getDefaultProps is specified on the class', () => {
class GetDefaultPropsComponent extends React.Component {
render() {
return <span>{this.props.prop}</span>;
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/__tests__/ReactProfiler-test.internal.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ describe('Profiler', () => {
});

// Only call profile updates for paths that have re-rendered
// Since "inner" is beneath a pure compoent, it isn't called
// Since "inner" is beneath a pure component, it isn't called
expect(callback).toHaveBeenCalledTimes(2);
expect(callback.mock.calls[0][0]).toBe('middle');
expect(callback.mock.calls[1][0]).toBe('outer');
Expand Down Expand Up @@ -667,7 +667,7 @@ describe('Profiler', () => {
// Simulate time moving forward while frame is paused.
advanceTimeBy(50); // 10 -> 60

// Flush the remaninig work,
// Flush the remaining work,
// Which should take an additional 10ms of simulated time.
expect(renderer).toFlushAndYield(['Yield:10', 'Yield:17']);
expect(callback).toHaveBeenCalledTimes(2);
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/reactProdInvariant.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function reactProdInvariant(code: string): void {
for (let argIdx = 0; argIdx < argCount; argIdx++) {
url += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);
}
// Rename it so that our build transform doesn't atttempt
// Rename it so that our build transform doesn't attempt
// to replace this invariant() call with reactProdInvariant().
const i = invariant;
i(
Expand Down

0 comments on commit 95f98a1

Please sign in to comment.