Skip to content

Commit 30ed8a5

Browse files
author
Jack Pope
committed
Update comments
1 parent 61f6abf commit 30ed8a5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/react/src/__tests__/ReactProfiler-test.internal.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,14 +1080,15 @@ describe(`onRender`, () => {
10801080
// base time includes: 2 (ErrorBoundary)
10811081
// Since the tree is empty for the initial commit
10821082
expect(mountCall[3]).toBe(2);
1083-
// start time
1083+
// start time: 5 initially + 14 of work
1084+
// Add an additional 3 (ThrowsError) if we replayed the failed work
10841085
expect(mountCall[4]).toBe(
10851086
__DEV__ && replayFailedUnitOfWorkWithInvokeGuardedCallback
10861087
? 22
10871088
: 19,
10881089
);
1089-
// commit time: 5 initially + 14 of work
1090-
// Add an additional 3 (ThrowsError) if we replayed the failed work
1090+
// commit time: 19 initially + 14 of work
1091+
// Add an additional 6 (ThrowsError *2) if we replayed the failed work
10911092
expect(mountCall[5]).toBe(
10921093
__DEV__ && replayFailedUnitOfWorkWithInvokeGuardedCallback
10931094
? 39
@@ -1106,8 +1107,8 @@ describe(`onRender`, () => {
11061107
? 39
11071108
: 33,
11081109
);
1109-
// commit time: 19 (startTime) + 2 (ErrorBoundary) + 20 (AdvanceTime)
1110-
// Add an additional 3 (ThrowsError) if we replayed the failed work
1110+
// commit time: 33 (startTime) + 2 (ErrorBoundary) + 20 (AdvanceTime)
1111+
// Add an additional 6 (ThrowsError *2) if we replayed the failed work
11111112
expect(updateCall[5]).toBe(
11121113
__DEV__ && replayFailedUnitOfWorkWithInvokeGuardedCallback
11131114
? 61

0 commit comments

Comments
 (0)