Skip to content

Commit 5006d40

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-63009' into BUGS
2 parents c9356a7 + b1460e8 commit 5006d40

File tree

1 file changed

+3
-5
lines changed
  • dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/grid/paging

1 file changed

+3
-5
lines changed

dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/grid/paging/paging.test.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,10 @@ define([
3737
});
3838

3939
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;
40+
it('Check call "onPagesChange" method', function () {
41+
paging.updateCursor = jasmine.createSpy();
4442
paging.onPagesChange();
45-
expect(paging.current).toBe(3);
43+
expect(paging.updateCursor).toHaveBeenCalled();
4644
});
4745
});
4846

0 commit comments

Comments
 (0)