6576cba5af0e123d917b8c29b1c7638f7aa7d14b549f15bef2409e8d410add630d410c439763187039ff1a0f0a0a7cadca550220cf0e40824fd6fa6fa126d1 595 B

12345678910111213141516171819202122232425
  1. describe('Core.countSourceCols', () => {
  2. var id = 'testContainer';
  3. beforeEach(function() {
  4. this.$container = $(`<div id="${id}"></div>`).appendTo('body');
  5. });
  6. afterEach(function() {
  7. if (this.$container) {
  8. destroy();
  9. this.$container.remove();
  10. }
  11. });
  12. it('should return properly index from ', () => {
  13. var hot = handsontable({
  14. data: [['', '', '', '', '', '', '', '', '', '', '', '', '', '', '']],
  15. columns(column) {
  16. return [1, 5, 9].indexOf(column) > -1 ? {} : null;
  17. }
  18. });
  19. expect(hot.countSourceCols()).toBe(15);
  20. });
  21. });