@@ -9,17 +9,18 @@ import {
99 screen ,
1010 waitFor ,
1111 within ,
12- } from '../testUtils' ;
13- import { mockContentSearchConfig } from '../search-manager/data/api.mock' ;
12+ } from '@src/testUtils' ;
13+ import { mockContentSearchConfig } from '@src/search-manager/data/api.mock' ;
14+ import { type ToastActionData } from '@src/generic/toast-context' ;
1415import { CourseLibraries } from './CourseLibraries' ;
1516import {
1617 mockGetEntityLinks ,
1718 mockGetEntityLinksSummaryByDownstreamContext ,
1819 mockFetchIndexDocuments ,
1920 mockUseLibBlockMetadata ,
2021} from './data/api.mocks' ;
21- import { libraryBlockChangesUrl } from '.. /course-unit/data/api' ;
22- import { type ToastActionData } from '../generic/toast-context ' ;
22+ import { libraryBlockChangesUrl } from '@src /course-unit/data/api' ;
23+ import { CourseAuthoringProvider } from '@src/CourseAuthoringContext ' ;
2324
2425mockContentSearchConfig . applyMock ( ) ;
2526mockGetEntityLinks . applyMock ( ) ;
@@ -58,7 +59,11 @@ describe('<CourseLibraries />', () => {
5859
5960 const renderCourseLibrariesPage = async ( courseKey ?: string ) => {
6061 const courseId = courseKey || mockGetEntityLinks . courseKey ;
61- render ( < CourseLibraries courseId = { courseId } /> ) ;
62+ render (
63+ < CourseAuthoringProvider courseId = { courseId } >
64+ < CourseLibraries />
65+ </ CourseAuthoringProvider >
66+ ) ;
6267 } ;
6368
6469 it ( 'shows the spinner before the query is complete' , async ( ) => {
@@ -176,7 +181,11 @@ describe('<CourseLibraries ReviewTab />', () => {
176181
177182 const renderCourseLibrariesReviewPage = async ( courseKey ?: string ) => {
178183 const courseId = courseKey || mockGetEntityLinks . courseKey ;
179- render ( < CourseLibraries courseId = { courseId } /> ) ;
184+ render (
185+ < CourseAuthoringProvider courseId = { courseId } >
186+ < CourseLibraries />
187+ </ CourseAuthoringProvider >
188+ ) ;
180189 } ;
181190
182191 it ( 'shows the spinner before the query is complete' , async ( ) => {
0 commit comments