@quantlab/handsontable
Version:
Spreadsheet-like data grid editor that provides copy/paste functionality compatible with Excel/Google Docs
26 lines (21 loc) • 620 B
JavaScript
describe('Core.countSourceCols', () => {
var id = 'testContainer';
beforeEach(function() {
this.$container = $(`<div id="${id}"></div>`).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);
});
});