UNPKG

pagination-front-end

Version:

pagination-front-end é uma biblioteca voltada para realização de paginação no front end( pagination-front-end is a front-end paging library)

8 lines (6 loc) 313 B
import calculationStartPageAndEndPage from '../../src/utils/calculationStartPageAndEndPage'; describe('CalculationStartPageAndEndPage', () => { it('should calculate the start and end page', () => { expect(calculationStartPageAndEndPage(10, 10, 5)).toStrictEqual({"endPage": 10, "startPage": 1}); }); });