describe('Core.countSourceCols', () => { var id = 'testContainer'; beforeEach(function() { this.$container = $(`
`).appendTo('body'); }); afterEach(function() { if (this.$container) { destroy(); this.$container.remove(); } }); it('should return properly index from ', () => { var hot = handsontable({ data: [['', '', '', '', '', '', '', '', '', '', '', '', '', '', '']], columns(column) { return [1, 5, 9].indexOf(column) > -1 ? {} : null; } }); expect(hot.countSourceCols()).toBe(15); }); });