Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuprog committed Jun 20, 2023
1 parent 4f4b159 commit c8392a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/current-user/useCurrentUser.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test('use current user primitive', () => {
meta: { foo: 1 }
});

const [currentUser, { authenticationStatus, meta }] = useCurrentUser<User>();
const [currentUser, { authenticationStatus, meta }] = useCurrentUser<User, { foo: number }>();

expect(currentUser.loading).toBe(false);
expect(currentUser()?.name).toBe('John');
Expand Down

0 comments on commit c8392a9

Please sign in to comment.