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.
1 parent 56daae0 commit edc16d5Copy full SHA for edc16d5
dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/grid/columns/image-preview.test.js
@@ -66,7 +66,8 @@ define([
66
})
67
68
},
69
- imageMock = document.createElement('img');
+ imageMock = document.createElement('img'),
70
+ originMock = $.fn.get;
71
72
spyOn($.fn, 'get').and.returnValue(imageMock);
73
imagePreview.visibleRecord = jasmine.createSpy().and.returnValue(2);
@@ -75,6 +76,7 @@ define([
75
76
imagePreview.masonry = jasmine.createSpy().and.returnValue(masonryMock);
77
imagePreview.handleKeyDown(elementMock);
78
expect(imagePreview.displayedRecord()._rowIndex).toBe(secondRecordMock._rowIndex);
79
+ $.fn.get = originMock;
80
});
81
82
0 commit comments