Skip to content

Commit 23857e8

Browse files
committed
Bump idx in unit test
This proves that this number is actually deprioritized.
1 parent cb2bc0d commit 23857e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/renderers/shared/fiber/__tests__/ReactIncrementalSideEffects-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ describe('ReactIncrementalSideEffects', () => {
650650

651651
ops = [];
652652

653-
ReactNoop.render(<Foo tick={1} idx={0} />);
653+
ReactNoop.render(<Foo tick={1} idx={1} />);
654654
ReactNoop.flushDeferredPri(70);
655655
expect(ReactNoop.root.children).toEqual([
656656
div(
@@ -700,8 +700,8 @@ describe('ReactIncrementalSideEffects', () => {
700700
div(
701701
// Now we had enough time to finish the spans.
702702
span('X'),
703-
span(0),
704-
span(0),
703+
span(1),
704+
span(1),
705705
)
706706
),
707707
]);

0 commit comments

Comments
 (0)