describe('Core.toVisualColumn', () => { var id = 'testContainer'; beforeEach(function() { this.$container = $(`
`).appendTo('body'); }); afterEach(function() { if (this.$container) { destroy(); this.$container.remove(); } }); it('should return valid visual row index', () => { var hot = handsontable({ data: Handsontable.helper.createSpreadsheetData(10, 10), unmodifyCol(column) { return column + 3; } }); expect(hot.toVisualColumn(0)).toBe(3); expect(hot.toVisualColumn(1)).toBe(4); expect(hot.toVisualColumn(2)).toBe(5); }); });