mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-05-04 07:33:18 +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
|
||||
test('unhighlight with term', function() {
|
||||
// setup
|
||||
tf.clearFilters();
|
||||
tf.setFilterValue(0, 'Sydney');
|
||||
tf.filter();
|
||||
|
||||
|
@ -56,11 +57,10 @@ test('unhighlight with term', function() {
|
|||
// assert
|
||||
deepEqual(tf.dom().querySelectorAll('.keyword').length, 0,
|
||||
'term unhighlighted');
|
||||
|
||||
tf.clearFilters();
|
||||
});
|
||||
test('unhighlight with null term', function() {
|
||||
// setup
|
||||
tf.clearFilters();
|
||||
tf.setFilterValue(0, 'Sydney');
|
||||
tf.setFilterValue(1, 'Canbe');
|
||||
tf.filter();
|
||||
|
@ -70,9 +70,7 @@ test('unhighlight with null term', function() {
|
|||
|
||||
// assert
|
||||
deepEqual(tf.dom().querySelectorAll('.keyword').length, 0,
|
||||
'term unhighlighted');
|
||||
|
||||
tf.clearFilters();
|
||||
'all terms unhighlighted');
|
||||
});
|
||||
|
||||
module('Reset feature');
|
||||
|
|
Loading…
Reference in a new issue