1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-05-23 08:42:18 +02:00
TableFilter/test/test-one-row.js
2017-01-04 14:09:18 +11:00

19 lines
516 B
JavaScript

var tf = new TableFilter('demo', 0, {
base_path: '../dist/tablefilter/'
});
tf.init();
module('Sanity checks');
test('Only headers with no rows', function() {
deepEqual(tf instanceof TableFilter, true, 'TableFilter instanciated');
deepEqual(tf.nbCells, 0, 'Number of columns');
deepEqual(tf.refRow, 1, 'Reference row index');
});
module('Tear-down');
test('TableFilter removed', function() {
tf.clearFilters();
tf.destroy();
deepEqual(tf.isInitialized(), false, 'Filters removed');
});