import { shallowMount } from '@vue/test-utils' import Pagination from '@/components/Pagination/index.vue' describe('shared Pagination', () => { it('offers 100 rows by default', () => { const wrapper = shallowMount(Pagination, { props: { total: 200 }}) expect(wrapper.props('pageSizes')).toEqual([10, 20, 30, 50, 100]) }) it('keeps explicit page-size overrides', () => { const pageSizes = [20, 50, 100, 200] const wrapper = shallowMount(Pagination, { props: { total: 200, pageSizes }}) expect(wrapper.props('pageSizes')).toEqual(pageSizes) }) })