Skip to content

Commit

Permalink
Remove unneeded extra check for React 17 in useFragment tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jan 5, 2024
1 parent 0d88921 commit a10fc98
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/react/hooks/__tests__/useFragment.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1513,12 +1513,6 @@ describe("has the same timing as `useQuery`", () => {

cache.writeQuery({ query, data: { item: updatedItem } });

if (React.version.startsWith("17.")) {
const { snapshot } = await ProfiledComponent.takeRender();
expect(snapshot.queryData).toStrictEqual({ item: initialItem });
expect(snapshot.fragmentData).toStrictEqual(updatedItem);
}

{
const { snapshot } = await ProfiledComponent.takeRender();
expect(snapshot.queryData).toStrictEqual({ item: updatedItem });
Expand Down

0 comments on commit a10fc98

Please sign in to comment.