From a773945957dd6204988d05d09c6dfd3051e3d304 Mon Sep 17 00:00:00 2001 From: "Teresa (Terri) Gobble" Date: Fri, 19 Jan 2024 09:17:56 -0600 Subject: [PATCH] Added test for viewer in useAuth --- packages/faustwp-core/tests/hooks/useAuth.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/faustwp-core/tests/hooks/useAuth.test.ts b/packages/faustwp-core/tests/hooks/useAuth.test.ts index 2fa662751..794558418 100644 --- a/packages/faustwp-core/tests/hooks/useAuth.test.ts +++ b/packages/faustwp-core/tests/hooks/useAuth.test.ts @@ -140,4 +140,10 @@ describe('useAuth hook', () => { fetchMock.restore(); }); + + it('returns the viewer object', () => { + const { result } = renderHook(() => useAuth()); + expect(result.current.viewer).toBeDefined(); + }); + });