Index: test/filterNotifier.js |
=================================================================== |
--- a/test/filterNotifier.js |
+++ b/test/filterNotifier.js |
@@ -14,49 +14,49 @@ |
* You should have received a copy of the GNU General Public License |
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
*/ |
"use strict"; |
const {createSandbox} = require("./_common"); |
-let FilterNotifier = null; |
+let filterNotifier = null; |
exports.setUp = function(callback) |
{ |
let sandboxedRequire = createSandbox(); |
( |
- {FilterNotifier} = sandboxedRequire("../lib/filterNotifier") |
+ {filterNotifier} = sandboxedRequire("../lib/filterNotifier") |
); |
callback(); |
}; |
let triggeredListeners = []; |
let listeners = [ |
(...args) => triggeredListeners.push(["listener1", ...args]), |
(...args) => triggeredListeners.push(["listener2", ...args]), |
(...args) => triggeredListeners.push(["listener3", ...args]) |
]; |
function addListener(listener) |
{ |
- FilterNotifier.on("foo", listener); |
+ filterNotifier.on("foo", listener); |
} |
function removeListener(listener) |
{ |
- FilterNotifier.off("foo", listener); |
+ filterNotifier.off("foo", listener); |
} |
function compareListeners(test, testDescription, list) |
{ |
let result1 = triggeredListeners = []; |
- FilterNotifier.emit("foo", {bar: true}); |
+ filterNotifier.emit("foo", {bar: true}); |
let result2 = triggeredListeners = []; |
for (let observer of list) |
observer({bar: true}); |
test.deepEqual(result1, result2, testDescription); |
} |