From 487604b15aaa9726f37e7050b3483e4f686b9800 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 13 Mar 2023 11:54:22 -0500 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 c3ec1e169..167e477b3 100644 --- a/app/soapbox/hooks/__tests__/useGroupsPath.test.ts +++ b/app/soapbox/hooks/__tests__/useGroupsPath.test.ts @@ -68,6 +68,19 @@ describe('useGroupsPath()', () => { }); test('should default to the "My Groups" page', async () => { + const store = { + entities: { + Groups: { + store: { + '1': normalizeGroup({}), + }, + lists: { + '': new Set(['1']), + }, + }, + }, + }; + const { result } = renderHook(useGroupsPath, undefined, store); await waitFor(() => {