Fix useGroupsPath test
This commit is contained in:
parent
be9d922047
commit
cf541e83b3
1 changed files with 13 additions and 0 deletions
|
@ -62,6 +62,19 @@ describe('useGroupsPath()', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should default to the discovery page', async () => {
|
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);
|
const { result } = renderHook(useGroupsPath, undefined, store);
|
||||||
|
|
||||||
await waitFor(() => {
|
await waitFor(() => {
|
||||||
|
|
Loading…
Reference in a new issue