Skip to content

Commit 1ef4110

Browse files
committed
Change tests parameters wording
1 parent 63c288a commit 1ef4110

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/transformers/__tests__/pagination.tests.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { getNumberPages, paginateHits } from '../'
22
import { 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(

0 commit comments

Comments
 (0)