fix unit tests

This commit is contained in:
koalyptus 2018-09-13 01:52:51 +10:00
parent b14667a345
commit 6813debb6e
1 changed files with 3 additions and 5 deletions

View File

@ -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');