Skip to content

Commit

Permalink
Added test for viewer in useAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
TeresaGobble committed Jan 19, 2024
1 parent 2a34541 commit a773945
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/faustwp-core/tests/hooks/useAuth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,10 @@ describe('useAuth hook', () => {

fetchMock.restore();
});

it('returns the viewer object', () => {
const { result } = renderHook(() => useAuth());
expect(result.current.viewer).toBeDefined();
});

});

0 comments on commit a773945

Please sign in to comment.