1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2026-03-18 08:29:50 +01:00

Continued increasing coverage

This commit is contained in:
Max Guglielmi 2016-12-08 22:16:47 +11:00
commit 8dee7d0cfb
15 changed files with 54 additions and 37 deletions

View file

@ -79,7 +79,7 @@
deepEqual(tf1.getFilterElement(0), null, 'Filter 0 removed');
});
module('DOM table does not exist');
module('Edge cases');
test('throws when no working DOM element', function() {
throws(
function() { new TableFilter('xyz'); },
@ -87,5 +87,9 @@
'Throws Error when no DOM table'
);
});
test('Can instantiate with wrong refRow', function() {
var tf2 = new TableFilter('demo', -9);
deepEqual(tf2.nbCells, 5, 'Expected number of columns');
});
})(window, TableFilter);