From cf541e83b3308ecd41df53652d966467e5dd6e81 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 10 Mar 2023 10:56:00 -0600 Subject: [PATCH] Fix useGroupsPath test --- app/soapbox/hooks/__tests__/useGroupsPath.test.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/soapbox/hooks/__tests__/useGroupsPath.test.ts b/app/soapbox/hooks/__tests__/useGroupsPath.test.ts index d2ffb2452..de123d211 100644 --- a/app/soapbox/hooks/__tests__/useGroupsPath.test.ts +++ b/app/soapbox/hooks/__tests__/useGroupsPath.test.ts @@ -62,6 +62,19 @@ describe('useGroupsPath()', () => { }); test('should default to the discovery page', async () => { + const store = { + entities: { + Groups: { + store: { + '1': normalizeGroup({}), + }, + lists: { + '': new Set(['1']), + }, + }, + }, + }; + const { result } = renderHook(useGroupsPath, undefined, store); await waitFor(() => {