1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2026-03-17 08:05:44 +01:00
TableFilter/test/test-one-row.js
koalyptus 81062452e2 wip
2017-11-27 19:34:24 +11:00

18 lines
531 B
JavaScript

var tf = new TableFilter('demo', {
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, 2, 'Reference row index');
});
// module('Tear-down');
// test('TableFilter removed', function() {
// tf.clearFilters();
// tf.destroy();
// deepEqual(tf.isInitialized(), false, 'Filters removed');
// });