We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c9356a7 + b1460e8 commit 5006d40Copy full SHA for 5006d40
dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/grid/paging/paging.test.js
@@ -37,12 +37,10 @@ define([
37
});
38
39
describe('onPagesChange method', function () {
40
- it('pages amount became less than current', function () {
41
- paging.current = 4;
42
- expect(paging.current).toBe(4);
43
- paging.pageSize = 3;
+ it('Check call "onPagesChange" method', function () {
+ paging.updateCursor = jasmine.createSpy();
44
paging.onPagesChange();
45
- expect(paging.current).toBe(3);
+ expect(paging.updateCursor).toHaveBeenCalled();
46
47
48
0 commit comments