Skip to content

Commit

Permalink
tests/classes/{Column,Row,Table}: assert that reopen and reopenClass …
Browse files Browse the repository at this point in the history
…are functions
  • Loading branch information
buschtoens committed Jun 23, 2017
1 parent e81db69 commit 23be763
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unit/classes/column-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 5 additions & 0 deletions tests/unit/classes/row-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
5 changes: 5 additions & 0 deletions tests/unit/classes/table-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 23be763

Please sign in to comment.