Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: qunit/tests/prefs.js

Issue 29581937: Noissue - Use anonymous blocks instead of anonymous functions (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created Oct. 18, 2017, 2:10 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « qunit/tests/filterValidation.js ('k') | qunit/tests/url.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: qunit/tests/prefs.js
===================================================================
--- a/qunit/tests/prefs.js
+++ b/qunit/tests/prefs.js
@@ -1,11 +1,10 @@
"use strict";
-(function()
{
const {Prefs} = require("prefs");
module("Preferences", {
setup()
{
this._pbackup = Object.create(null);
for (let pref in Prefs)
@@ -155,9 +154,9 @@
delete Prefs.notificationdata.bar;
Prefs.notificationdata = JSON.parse(JSON.stringify(Prefs.notificationdata));
deepEqual(
Prefs.notificationdata, {},
"Prefs object returns the correct value after setting pref to " +
"default value"
);
});
-}());
+}
« no previous file with comments | « qunit/tests/filterValidation.js ('k') | qunit/tests/url.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld