Skip to content

Commit

Permalink
Amend assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Silbermann committed Feb 2, 2024
1 parent cce00bc commit 39f95f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-refresh/src/__tests__/ReactFresh-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1419,12 +1419,12 @@ describe('ReactFresh', () => {
$RefreshReg$(Hello, 'Hello');
});

// Colors inside both trees should change:
// Only update color in the visible child
expect(container.childNodes.length).toBe(2);
expect(container.childNodes[0]).toBe(primaryChild);
expect(container.childNodes[1]).toBe(fallbackChild);
expect(primaryChild.textContent).toBe('Content 1');
expect(primaryChild.style.color).toBe('red');
expect(primaryChild.style.color).toBe('green');
expect(primaryChild.style.display).toBe('none');
expect(fallbackChild.textContent).toBe('Fallback 1');
expect(fallbackChild.style.color).toBe('red');
Expand Down

0 comments on commit 39f95f4

Please sign in to comment.