@@ -130,13 +130,13 @@ describe('SearchManager', () => {
130130
131131 const filterValue = 'filterValue' ;
132132 const filterAuthority = null ;
133- const options : BrowseEntrySearchOptions = { options : null } as any ;
133+ const browseOptions : BrowseEntrySearchOptions = Object . assign ( { } , { projection : 'preventMetadataSecurity' } ) as BrowseEntrySearchOptions ;
134134 const followLink : FollowLinkConfig < any > = { } as any ;
135135
136- scheduler . schedule ( ( ) => service . getBrowseItemsFor ( filterValue , filterAuthority , options , followLink ) . subscribe ( ) ) ;
136+ scheduler . schedule ( ( ) => service . getBrowseItemsFor ( filterValue , filterAuthority , browseOptions , followLink ) . subscribe ( ) ) ;
137137 scheduler . flush ( ) ;
138138
139- expect ( mockBrowseService . getBrowseItemsFor ) . toHaveBeenCalledWith ( filterValue , null , options , followLink ) ;
139+ expect ( mockBrowseService . getBrowseItemsFor ) . toHaveBeenCalledWith ( filterValue , null , browseOptions , followLink ) ;
140140 expect ( mockItemService . findAllById ) . toHaveBeenCalledWith ( [ validAuthority , validAuthority2 ] ) ;
141141
142142 } ) ;
@@ -145,13 +145,13 @@ describe('SearchManager', () => {
145145
146146 const filterValue = 'filterValue' ;
147147 const filterAuthority = 'filterAuthority' ;
148- const options : BrowseEntrySearchOptions = { options : null } as any ;
148+ const browseOptions : BrowseEntrySearchOptions = Object . assign ( { } , { projection : 'preventMetadataSecurity' } ) as BrowseEntrySearchOptions ;
149149 const followLink : FollowLinkConfig < any > = { } as any ;
150150
151- scheduler . schedule ( ( ) => service . getBrowseItemsFor ( filterValue , filterAuthority , options , followLink ) . subscribe ( ) ) ;
151+ scheduler . schedule ( ( ) => service . getBrowseItemsFor ( filterValue , filterAuthority , browseOptions , followLink ) . subscribe ( ) ) ;
152152 scheduler . flush ( ) ;
153153
154- expect ( mockBrowseService . getBrowseItemsFor ) . toHaveBeenCalledWith ( filterValue , filterAuthority , options , followLink ) ;
154+ expect ( mockBrowseService . getBrowseItemsFor ) . toHaveBeenCalledWith ( filterValue , filterAuthority , browseOptions , followLink ) ;
155155 expect ( mockItemService . findAllById ) . toHaveBeenCalledWith ( [ validAuthority , validAuthority2 ] ) ;
156156
157157 } ) ;
0 commit comments