mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-05-03 15:13:15 +02:00
fix unit tests
This commit is contained in:
parent
b14667a345
commit
6813debb6e
|
@ -47,6 +47,7 @@ test('Match same term with increasing number of chars', function() {
|
||||||
// issue 628
|
// issue 628
|
||||||
test('unhighlight with term', function() {
|
test('unhighlight with term', function() {
|
||||||
// setup
|
// setup
|
||||||
|
tf.clearFilters();
|
||||||
tf.setFilterValue(0, 'Sydney');
|
tf.setFilterValue(0, 'Sydney');
|
||||||
tf.filter();
|
tf.filter();
|
||||||
|
|
||||||
|
@ -56,11 +57,10 @@ test('unhighlight with term', function() {
|
||||||
// assert
|
// assert
|
||||||
deepEqual(tf.dom().querySelectorAll('.keyword').length, 0,
|
deepEqual(tf.dom().querySelectorAll('.keyword').length, 0,
|
||||||
'term unhighlighted');
|
'term unhighlighted');
|
||||||
|
|
||||||
tf.clearFilters();
|
|
||||||
});
|
});
|
||||||
test('unhighlight with null term', function() {
|
test('unhighlight with null term', function() {
|
||||||
// setup
|
// setup
|
||||||
|
tf.clearFilters();
|
||||||
tf.setFilterValue(0, 'Sydney');
|
tf.setFilterValue(0, 'Sydney');
|
||||||
tf.setFilterValue(1, 'Canbe');
|
tf.setFilterValue(1, 'Canbe');
|
||||||
tf.filter();
|
tf.filter();
|
||||||
|
@ -70,9 +70,7 @@ test('unhighlight with null term', function() {
|
||||||
|
|
||||||
// assert
|
// assert
|
||||||
deepEqual(tf.dom().querySelectorAll('.keyword').length, 0,
|
deepEqual(tf.dom().querySelectorAll('.keyword').length, 0,
|
||||||
'term unhighlighted');
|
'all terms unhighlighted');
|
||||||
|
|
||||||
tf.clearFilters();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
module('Reset feature');
|
module('Reset feature');
|
||||||
|
|
Loading…
Reference in a new issue