Updated unit test
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2023-03-02 07:59:15 +01:00
parent 55a9df0010
commit fe2d1d8a3e
1 changed files with 3 additions and 2 deletions

View File

@ -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);
});
});