@@ -146,7 +146,7 @@ describe('VocabularyTreeviewComponent test suite', () => {
146146 comp . selectedItems = [ currentValue ] ;
147147 fixture . detectChanges ( ) ;
148148 expect ( comp . dataSource . data ) . toEqual ( [ ] ) ;
149- expect ( vocabularyTreeviewServiceStub . initialize ) . toHaveBeenCalledWith ( comp . vocabularyOptions , testPageInfo , [ 'entryID' ] , 'entryID' , false , false , false ) ;
149+ expect ( vocabularyTreeviewServiceStub . initialize ) . toHaveBeenCalledWith ( comp . vocabularyOptions , new PageInfo ( ) , [ 'entryID' ] , 'entryID' , false , false , false ) ;
150150 } ) ;
151151
152152 it ( 'should should init component properly with init value as VocabularyEntry' , ( ) => {
@@ -158,7 +158,7 @@ describe('VocabularyTreeviewComponent test suite', () => {
158158 comp . selectedItems = [ currentValue ] ;
159159 fixture . detectChanges ( ) ;
160160 expect ( comp . dataSource . data ) . toEqual ( [ ] ) ;
161- expect ( vocabularyTreeviewServiceStub . initialize ) . toHaveBeenCalledWith ( comp . vocabularyOptions , testPageInfo , [ 'entryID' ] , 'entryID' , false , false , false ) ;
161+ expect ( vocabularyTreeviewServiceStub . initialize ) . toHaveBeenCalledWith ( comp . vocabularyOptions , new PageInfo ( ) , [ 'entryID' ] , 'entryID' , false , false , false ) ;
162162 } ) ;
163163
164164 it ( 'should should init component properly with init value as VocabularyEntryDetail' , ( ) => {
@@ -168,7 +168,7 @@ describe('VocabularyTreeviewComponent test suite', () => {
168168 comp . selectedItems = [ currentValue ] ;
169169 fixture . detectChanges ( ) ;
170170 expect ( comp . dataSource . data ) . toEqual ( [ ] ) ;
171- expect ( vocabularyTreeviewServiceStub . initialize ) . toHaveBeenCalledWith ( comp . vocabularyOptions , testPageInfo , [ 'entryID' ] , 'entryID' , false , false , false ) ;
171+ expect ( vocabularyTreeviewServiceStub . initialize ) . toHaveBeenCalledWith ( comp . vocabularyOptions , new PageInfo ( ) , [ 'entryID' ] , 'entryID' , false , false , false ) ;
172172 } ) ;
173173
174174 it ( 'should should init component properly with init value as VocabularyEntry and publicModeOnly enabled' , ( ) => {
@@ -181,7 +181,7 @@ describe('VocabularyTreeviewComponent test suite', () => {
181181 comp . selectedItems = [ currentValue ] ;
182182 fixture . detectChanges ( ) ;
183183 expect ( comp . dataSource . data ) . toEqual ( [ ] ) ;
184- expect ( vocabularyTreeviewServiceStub . initialize ) . toHaveBeenCalledWith ( comp . vocabularyOptions , testPageInfo , [ 'entryID' ] , 'entryID' , true , false , false ) ;
184+ expect ( vocabularyTreeviewServiceStub . initialize ) . toHaveBeenCalledWith ( comp . vocabularyOptions , new PageInfo ( ) , [ 'entryID' ] , 'entryID' , true , false , false ) ;
185185 } ) ;
186186
187187 it ( 'should call loadMore function' , ( ) => {
0 commit comments