diff --git a/test/vitest/__tests__/components/Paginate.spec.js b/test/vitest/__tests__/components/Paginate.spec.js index cb0109960..5a6b08712 100644 --- a/test/vitest/__tests__/components/Paginate.spec.js +++ b/test/vitest/__tests__/components/Paginate.spec.js @@ -20,6 +20,7 @@ describe('Paginate', () => { afterEach(() => { vm.store.data = []; + vm.store.skip = 0; vm.pagination.page = 1; vm.hasMoreData = true; }); @@ -56,12 +57,12 @@ describe('Paginate', () => { await vm.paginate(); - expect(vm.store.skip).toEqual(0); + expect(vm.store.skip).toEqual(3); expect(vm.store.data.length).toEqual(6); await vm.paginate(); - expect(vm.store.skip).toEqual(3); + expect(vm.store.skip).toEqual(6); expect(vm.store.data.length).toEqual(9); }); });