Fix useGroupsPath test
This commit is contained in:
parent
5278c8eb0f
commit
487604b15a
1 changed files with 13 additions and 0 deletions
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in a new issue