Skip to content

Commit 67052ff

Browse files
lukasviceCopilot
andcommitted
make eslint automatic fixes
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c51c08e commit 67052ff

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

jestconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
},
66
"testRegex": "(/__tests?__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
77
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"]
8-
}
8+
}

src/__test__/pagination-with-one-based-index-type.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { calculatePagination, IndexType } from '../index'
1+
import { IndexType, calculatePagination } from '../index'
22

33
it('should return no pagination if not enough items are given', () => {
44
const page = 1
@@ -38,7 +38,7 @@ it('should return the maximum number of pages', () => {
3838
const maxPages = 5
3939
const pagination = calculatePagination(page, size, total, {
4040
indexType: IndexType.ONE_BASED,
41-
maxPages: maxPages,
41+
maxPages,
4242
})
4343

4444
expect(pagination).not.toBeNull()

src/__test__/pagination-with-zero-based-index-type.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { calculatePagination, IndexType } from '../index'
1+
import { IndexType, calculatePagination } from '../index'
22

33
it('should return no pagination if not enough items are given', () => {
44
const page = 0
@@ -38,7 +38,7 @@ it('should return the maximum number of pages', () => {
3838
const maxPages = 5
3939
const pagination = calculatePagination(page, size, total, {
4040
indexType: IndexType.ZERO_BASED,
41-
maxPages: maxPages,
41+
maxPages,
4242
})
4343

4444
expect(pagination).not.toBeNull()

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@ const calculatePagination = (
114114
}
115115
}
116116

117-
export { calculatePagination, IndexType }
117+
export { IndexType, calculatePagination }

0 commit comments

Comments
 (0)