From 23be76346e66f42f1c022803157683ef0c95bd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Buscht=C3=B6ns?= Date: Fri, 23 Jun 2017 15:24:24 +0200 Subject: [PATCH] tests/classes/{Column,Row,Table}: assert that reopen and reopenClass are functions --- tests/unit/classes/column-test.js | 5 +++++ tests/unit/classes/row-test.js | 5 +++++ tests/unit/classes/table-test.js | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/tests/unit/classes/column-test.js b/tests/unit/classes/column-test.js index 0689329f..ae3b8398 100644 --- a/tests/unit/classes/column-test.js +++ b/tests/unit/classes/column-test.js @@ -29,6 +29,11 @@ test('create column - column instance', function(assert) { assert.equal(col2.label, 'Name'); }); +test('reopen colum', function(assert) { + assert.equal(typeof Column.reopen, 'function', 'reopen is a function'); + assert.equal(typeof Column.reopenClass, 'function', 'reopenClass is a function'); +}); + test('CP - isGroupColumn', function(assert) { let col = new Column(); assert.ok(col); diff --git a/tests/unit/classes/row-test.js b/tests/unit/classes/row-test.js index 8098f75d..8283f89d 100644 --- a/tests/unit/classes/row-test.js +++ b/tests/unit/classes/row-test.js @@ -19,3 +19,8 @@ test('create row - row instance', function(assert) { assert.equal(row.get('foo'), 'bar'); assert.equal(row2.get('foo'), 'bar'); }); + +test('reopen row', function(assert) { + assert.equal(typeof Row.reopen, 'function', 'reopen is a function'); + assert.equal(typeof Row.reopenClass, 'function', 'reopenClass is a function'); +}); diff --git a/tests/unit/classes/table-test.js b/tests/unit/classes/table-test.js index 8f9e53a0..2dcefe93 100644 --- a/tests/unit/classes/table-test.js +++ b/tests/unit/classes/table-test.js @@ -27,6 +27,11 @@ test('create table - with options', function(assert) { assert.ok(table.columns[0] instanceof Column); }); +test('reopen table', function(assert) { + assert.equal(typeof Table.reopen, 'function', 'reopen is a function'); + assert.equal(typeof Table.reopenClass, 'function', 'reopenClass is a function'); +}); + test('CP - visibleColumnGroups', function(assert) { let table = new Table(); let col = new Column();