Skip to content

Commit 9ae182c

Browse files
committed
fix test
1 parent 022c2e7 commit 9ae182c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-reconciler/src/__tests__/ReactFlushSync-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('ReactFlushSync', () => {
5555
// They should commit in two separate batches. First the sync one.
5656
expect(() => {
5757
expect(Scheduler).toFlushUntilNextPaint(
58-
gate(flags => flags.enableSyncDefaultUpdates) ? ['1, 1'] : ['1', '0'],
58+
gate(flags => flags.enableSyncDefaultUpdates) ? ['1, 1'] : ['1, 0'],
5959
);
6060
}).toErrorDev('flushSync was called from inside a lifecycle method');
6161

@@ -67,7 +67,7 @@ describe('ReactFlushSync', () => {
6767
expect(Scheduler).toFlushUntilNextPaint([]);
6868
} else {
6969
// Now flush it.
70-
expect(Scheduler).toFlushUntilNextPaint(['1 / 1']);
70+
expect(Scheduler).toFlushUntilNextPaint(['1, 1']);
7171
}
7272
});
7373
expect(root).toMatchRenderedOutput('1, 1');

0 commit comments

Comments
 (0)