Finally fix the build pagination issue
This commit is contained in:
11
src/lib/pagination/dropTakeParams.test.ts
Normal file
11
src/lib/pagination/dropTakeParams.test.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { describe, test, expect } from 'vitest'
|
||||
import { getDropTakeFromPageParams } from './dropTakeParams'
|
||||
|
||||
describe('convert search params', () => {
|
||||
test('should convert from page size and page to offset and limit', () => {
|
||||
expect(getDropTakeFromPageParams(7, 2)).toEqual({
|
||||
offset: 7,
|
||||
limit: 7,
|
||||
})
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user