Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
buff up wording
  • Loading branch information
Sebastian Silbermann committed Feb 5, 2024
commit 69abbc56f693239cf63f92d26d334906084f7cf0
12 changes: 6 additions & 6 deletions packages/react/src/__tests__/ReactStrictMode-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,14 @@ describe('ReactStrictMode', () => {

function App() {
React.useState(() => {
log.push('Compute initial count state: 1');
log.push('Compute initial state count: 1');
return 1;
});
React.useReducer(
s => s,
2,
s => {
log.push('Compute initial reducer state: 2');
log.push('Compute initial reducer count: 2');
return s;
},
);
Expand All @@ -235,10 +235,10 @@ describe('ReactStrictMode', () => {
expect(container.textContent).toBe('3');

expect(log).toEqual([
'Compute initial count state: 1',
'Compute initial count state: 1',
'Compute initial reducer state: 2',
'Compute initial reducer state: 2',
'Compute initial state count: 1',
'Compute initial state count: 1',
'Compute initial reducer count: 2',
'Compute initial reducer count: 2',
]);
});

Expand Down