@@ -449,18 +449,11 @@ describe('CollectionsRepository', () => {
449449 [ GetCollectionItemsQueryParams . QUERY ] : '*' ,
450450 [ GetCollectionItemsQueryParams . SHOW_FACETS ] : 'true' ,
451451 [ GetCollectionItemsQueryParams . SORT ] : SortType . DATE ,
452- [ GetCollectionItemsQueryParams . ORDER ] : OrderType . DESC
452+ [ GetCollectionItemsQueryParams . ORDER ] : OrderType . DESC ,
453+ [ GetCollectionItemsQueryParams . PER_PAGE ] : testLimit . toString ( ) ,
454+ [ GetCollectionItemsQueryParams . START ] : testOffset . toString ( )
453455 } )
454456
455- expectedRequestParamsWithPagination . set (
456- GetCollectionItemsQueryParams . PER_PAGE ,
457- testLimit . toString ( )
458- )
459- expectedRequestParamsWithPagination . set (
460- GetCollectionItemsQueryParams . START ,
461- testOffset . toString ( )
462- )
463-
464457 const expectedRequestConfigApiKeyWithPagination = {
465458 params : expectedRequestParamsWithPagination ,
466459 headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . headers
@@ -503,14 +496,10 @@ describe('CollectionsRepository', () => {
503496 [ GetCollectionItemsQueryParams . QUERY ] : '*' ,
504497 [ GetCollectionItemsQueryParams . SHOW_FACETS ] : 'true' ,
505498 [ GetCollectionItemsQueryParams . SORT ] : SortType . DATE ,
506- [ GetCollectionItemsQueryParams . ORDER ] : OrderType . DESC
499+ [ GetCollectionItemsQueryParams . ORDER ] : OrderType . DESC ,
500+ [ GetCollectionItemsQueryParams . SUBTREE ] : testCollectionId
507501 } )
508502
509- expectedRequestParamsWithCollectionId . set (
510- GetCollectionItemsQueryParams . SUBTREE ,
511- testCollectionId
512- )
513-
514503 const expectedRequestConfigApiKeyWithCollectionId = {
515504 params : expectedRequestParamsWithCollectionId ,
516505 headers : TestConstants . TEST_EXPECTED_AUTHENTICATED_REQUEST_CONFIG_API_KEY . headers
0 commit comments