@@ -6,7 +6,7 @@ const DEFAULT_CONTEXT = {
66 defaultFacetDistribution : { } ,
77}
88
9- test ( 'Adapt basic SearchContext ' , ( ) => {
9+ test ( 'adapting a basic searchContext ' , ( ) => {
1010 const searchParams = adaptSearchParams ( {
1111 ...DEFAULT_CONTEXT ,
1212 finitePagination : false ,
@@ -15,7 +15,7 @@ test('Adapt basic SearchContext ', () => {
1515 expect ( searchParams . attributesToHighlight ?. length ) . toBe ( 1 )
1616} )
1717
18- test ( 'Adapt SearchContext with filters, sort and no geo rules ' , ( ) => {
18+ test ( 'adapting a searchContext with filters, sort and no geo rules ' , ( ) => {
1919 const searchParams = adaptSearchParams ( {
2020 ...DEFAULT_CONTEXT ,
2121 facetFilters : [ [ 'genres:Drama' , 'genres:Thriller' ] , [ 'title:Ariel' ] ] ,
@@ -32,7 +32,7 @@ test('Adapt SearchContext with filters, sort and no geo rules ', () => {
3232 expect ( searchParams . attributesToHighlight ?. length ) . toBe ( 1 )
3333} )
3434
35- test ( 'Adapt SearchContext with filters, sort and geo rules ' , ( ) => {
35+ test ( 'adapting a searchContext with filters, sort and geo rules ' , ( ) => {
3636 const searchParams = adaptSearchParams ( {
3737 ...DEFAULT_CONTEXT ,
3838 facetFilters : [ [ 'genres:Drama' , 'genres:Thriller' ] , [ 'title:Ariel' ] ] ,
@@ -51,7 +51,7 @@ test('Adapt SearchContext with filters, sort and geo rules ', () => {
5151 expect ( searchParams . attributesToHighlight ?. length ) . toBe ( 1 )
5252} )
5353
54- test ( 'Adapt SearchContext with only facetFilters and geo rules ' , ( ) => {
54+ test ( 'adapting a searchContext with only facetFilters and geo rules ' , ( ) => {
5555 const searchParams = adaptSearchParams ( {
5656 ...DEFAULT_CONTEXT ,
5757 facetFilters : [ [ 'genres:Drama' , 'genres:Thriller' ] , [ 'title:Ariel' ] ] ,
@@ -68,7 +68,7 @@ test('Adapt SearchContext with only facetFilters and geo rules ', () => {
6868 expect ( searchParams . attributesToHighlight ?. length ) . toBe ( 1 )
6969} )
7070
71- test ( 'Adapt SearchContext with only sort and geo rules ' , ( ) => {
71+ test ( 'adapting a searchContext with only sort and geo rules ' , ( ) => {
7272 const searchParams = adaptSearchParams ( {
7373 ...DEFAULT_CONTEXT ,
7474 insideBoundingBox : '0,0,0,0' ,
@@ -82,7 +82,7 @@ test('Adapt SearchContext with only sort and geo rules ', () => {
8282 expect ( searchParams . attributesToHighlight ?. length ) . toBe ( 1 )
8383} )
8484
85- test ( 'Adapt SearchContext with no sort and no filters and geo rules ' , ( ) => {
85+ test ( 'adapting a searchContext with no sort and no filters and geo rules ' , ( ) => {
8686 const searchParams = adaptSearchParams ( {
8787 ...DEFAULT_CONTEXT ,
8888 insideBoundingBox : '0,0,0,0' ,
@@ -94,7 +94,7 @@ test('Adapt SearchContext with no sort and no filters and geo rules ', () => {
9494 expect ( searchParams . attributesToHighlight ?. length ) . toBe ( 1 )
9595} )
9696
97- test ( 'Adapt SearchContext with finite pagination' , ( ) => {
97+ test ( 'adapting a searchContext with finite pagination' , ( ) => {
9898 const searchParams = adaptSearchParams ( {
9999 ...DEFAULT_CONTEXT ,
100100 finitePagination : true ,
@@ -103,7 +103,7 @@ test('Adapt SearchContext with finite pagination', () => {
103103 expect ( searchParams . limit ) . toBe ( 20 )
104104} )
105105
106- test ( 'Adapt SearchContext with finite pagination on a later page' , ( ) => {
106+ test ( 'adapting a searchContext with finite pagination on a later page' , ( ) => {
107107 const searchParams = adaptSearchParams ( {
108108 ...DEFAULT_CONTEXT ,
109109 pagination : { paginationTotalHits : 20 , page : 10 , hitsPerPage : 6 } ,
@@ -113,7 +113,7 @@ test('Adapt SearchContext with finite pagination on a later page', () => {
113113 expect ( searchParams . limit ) . toBe ( 20 )
114114} )
115115
116- test ( 'Adapt SearchContext with finite pagination and pagination total hits lower than hitsPerPage' , ( ) => {
116+ test ( 'adapting a searchContext with finite pagination and pagination total hits lower than hitsPerPage' , ( ) => {
117117 const searchParams = adaptSearchParams ( {
118118 ...DEFAULT_CONTEXT ,
119119 pagination : { paginationTotalHits : 4 , page : 0 , hitsPerPage : 6 } ,
@@ -123,7 +123,7 @@ test('Adapt SearchContext with finite pagination and pagination total hits lower
123123 expect ( searchParams . limit ) . toBe ( 4 )
124124} )
125125
126- test ( 'Adapt SearchContext with no finite pagination' , ( ) => {
126+ test ( 'adapting a searchContext with no finite pagination' , ( ) => {
127127 const searchParams = adaptSearchParams ( {
128128 ...DEFAULT_CONTEXT ,
129129 finitePagination : false ,
@@ -132,7 +132,7 @@ test('Adapt SearchContext with no finite pagination', () => {
132132 expect ( searchParams . limit ) . toBe ( 7 )
133133} )
134134
135- test ( 'Adapt SearchContext with no finite pagination on page 2' , ( ) => {
135+ test ( 'adapting a searchContext with no finite pagination on page 2' , ( ) => {
136136 const searchParams = adaptSearchParams ( {
137137 ...DEFAULT_CONTEXT ,
138138 pagination : { paginationTotalHits : 20 , page : 1 , hitsPerPage : 6 } ,
@@ -142,7 +142,7 @@ test('Adapt SearchContext with no finite pagination on page 2', () => {
142142 expect ( searchParams . limit ) . toBe ( 13 )
143143} )
144144
145- test ( 'Adapt SearchContext with no finite pagination on page higher than paginationTotalHits' , ( ) => {
145+ test ( 'adapting a searchContext with no finite pagination on page higher than paginationTotalHits' , ( ) => {
146146 const searchParams = adaptSearchParams ( {
147147 ...DEFAULT_CONTEXT ,
148148 pagination : { paginationTotalHits : 20 , page : 40 , hitsPerPage : 6 } ,
@@ -152,7 +152,7 @@ test('Adapt SearchContext with no finite pagination on page higher than paginati
152152 expect ( searchParams . limit ) . toBe ( 20 )
153153} )
154154
155- test ( 'Adapt SearchContext with no finite pagination and pagination total hits lower than hitsPerPage' , ( ) => {
155+ test ( 'adapting a searchContext with no finite pagination and pagination total hits lower than hitsPerPage' , ( ) => {
156156 const searchParams = adaptSearchParams ( {
157157 ...DEFAULT_CONTEXT ,
158158 pagination : { paginationTotalHits : 4 , page : 0 , hitsPerPage : 6 } ,
@@ -162,7 +162,7 @@ test('Adapt SearchContext with no finite pagination and pagination total hits lo
162162 expect ( searchParams . limit ) . toBe ( 4 )
163163} )
164164
165- test ( 'Adapt SearchContext placeholderSearch set to false' , ( ) => {
165+ test ( 'adapting a searchContext placeholderSearch set to false' , ( ) => {
166166 const searchParams = adaptSearchParams ( {
167167 ...DEFAULT_CONTEXT ,
168168 query : '' ,
@@ -174,7 +174,7 @@ test('Adapt SearchContext placeholderSearch set to false', () => {
174174 expect ( searchParams . limit ) . toBe ( 0 )
175175} )
176176
177- test ( 'Adapt SearchContext placeholderSearch set to false' , ( ) => {
177+ test ( 'adapting a searchContext placeholderSearch set to false' , ( ) => {
178178 const searchParams = adaptSearchParams ( {
179179 ...DEFAULT_CONTEXT ,
180180 query : '' ,
0 commit comments