File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/transformers/__tests__ Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import { getNumberPages , paginateHits } from '../'
22import { defaultContext } from './utils'
33
4- const algoliaNumberPagesBehavior = [
4+ const numberPagesTestParameters = [
55 {
66 hitsPerPage : 0 ,
77 hitsLength : 100 ,
@@ -43,7 +43,7 @@ const algoliaNumberPagesBehavior = [
4343 } ,
4444]
4545
46- const algoliaPaginateHitsBehavior = [
46+ const paginateHitsTestsParameters = [
4747 // Empty hits
4848 {
4949 hits : [ ] ,
@@ -140,7 +140,7 @@ const algoliaPaginateHitsBehavior = [
140140 } ,
141141]
142142
143- describe . each ( algoliaNumberPagesBehavior ) (
143+ describe . each ( numberPagesTestParameters ) (
144144 'Get Number Pages tests' ,
145145 ( { hitsPerPage, hitsLength, numberPages } ) => {
146146 it ( `Should return ${ numberPages } pages when hitsPerPage is ${ hitsPerPage } and hits length is ${ hitsLength } ` , ( ) => {
@@ -153,7 +153,7 @@ describe.each(algoliaNumberPagesBehavior)(
153153 }
154154)
155155
156- describe . each ( algoliaPaginateHitsBehavior ) (
156+ describe . each ( paginateHitsTestsParameters ) (
157157 'Paginate hits tests' ,
158158 ( { hits, page, hitsPerPage, returnedHits } ) => {
159159 it ( `Should return ${ JSON . stringify (
You can’t perform that action at this time.
0 commit comments