Skip to content

Commit 73a1c26

Browse files
committed
fix: failing tests
1 parent 25815ad commit 73a1c26

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/library-authoring/data/apiHooks.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ describe('library api hooks', () => {
157157
});
158158

159159
it('should get container children', async () => {
160+
const libraryId = 'lib:org:1';
160161
const containerId = 'lct:lib:org:unit:unit1';
161162
const url = getLibraryContainerChildrenApiUrl(containerId);
162163

@@ -192,7 +193,7 @@ describe('library api hooks', () => {
192193
collections: ['col2'],
193194
},
194195
]);
195-
const { result } = renderHook(() => useContainerChildren(containerId), { wrapper });
196+
const { result } = renderHook(() => useContainerChildren(libraryId, containerId), { wrapper });
196197
await waitFor(() => {
197198
expect(result.current.isLoading).toBeFalsy();
198199
});

0 commit comments

Comments
 (0)