Index: qunit/tests/filterValidation.js |
=================================================================== |
--- a/qunit/tests/filterValidation.js |
+++ b/qunit/tests/filterValidation.js |
@@ -1,11 +1,10 @@ |
"use strict"; |
-(function() |
{ |
const {parseFilter, parseFilters} = require("filterValidation"); |
const {BlockingFilter, |
ElemHideFilter, |
CommentFilter} = require("filterClasses"); |
module("Filter validation"); |
@@ -66,9 +65,9 @@ |
equal(result.filters[0].text, "||example.com^", "1st filter text matches"); |
ok(result.filters[1] instanceof ElemHideFilter, "2nd filter is elemhide"); |
equal(result.filters[1].text, "###foobar", "2nd filter text matches"); |
ok(result.filters[2] instanceof CommentFilter, "3rd filter is comment"); |
equal(result.filters[2].text, "! foo bar", "3rd filter text matches"); |
}); |
-}()); |
+} |