Updated unit test
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
This commit is contained in:
parent
55a9df0010
commit
fe2d1d8a3e
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue