Index: test/filterListener.js |
=================================================================== |
--- a/test/filterListener.js |
+++ b/test/filterListener.js |
@@ -61,17 +61,19 @@ |
function checkKnownFilters(test, text, expected) |
{ |
let result = {}; |
for (let type of ["blacklist", "whitelist"]) |
{ |
let matcher = defaultMatcher[type]; |
let filters = []; |
- for (let [keyword, set] of matcher.filterByKeyword) |
+ let allFilters = Object.assign(matcher._fastFilterByKeyword, |
+ matcher.filterByKeyword); |
+ for (let [keyword, set] of allFilters) |
{ |
for (let filter of set) |
{ |
test.equal(matcher.findKeyword(filter), keyword, |
"Keyword of filter " + filter.text); |
filters.push(filter.text); |
} |
} |