Skip to content

Commit

Permalink
skip merge, just confirm selector changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hannojg committed Jul 24, 2024
1 parent 3161a0f commit 69d6152
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/unit/useOnyxTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,7 @@ describe('useOnyx', () => {
// In a react app we expect the selector ref to change during a rerender (see selectorRef/useLiveRef)
rerender(undefined);

await act(async () => Onyx.merge(ONYXKEYS.TEST_KEY, {id: 'changed_id', name: 'changed_name'}));

expect(result.current[0]).toEqual('id - changed_id, name - changed_name - selector changed');
expect(result.current[0]).toEqual('id - test_id, name - test_name - selector changed');
expect(result.current[1].status).toEqual('loaded');
});

Expand Down

0 comments on commit 69d6152

Please sign in to comment.