We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25815ad commit 73a1c26Copy full SHA for 73a1c26
1 file changed
src/library-authoring/data/apiHooks.test.tsx
@@ -157,6 +157,7 @@ describe('library api hooks', () => {
157
});
158
159
it('should get container children', async () => {
160
+ const libraryId = 'lib:org:1';
161
const containerId = 'lct:lib:org:unit:unit1';
162
const url = getLibraryContainerChildrenApiUrl(containerId);
163
@@ -192,7 +193,7 @@ describe('library api hooks', () => {
192
193
collections: ['col2'],
194
},
195
]);
- const { result } = renderHook(() => useContainerChildren(containerId), { wrapper });
196
+ const { result } = renderHook(() => useContainerChildren(libraryId, containerId), { wrapper });
197
await waitFor(() => {
198
expect(result.current.isLoading).toBeFalsy();
199
0 commit comments