mediawiki-extensions-Popups/tests/node-qunit
Thiemo Kreuz ddf574afa3 Remove not needed userSettings.hasIsEnabled()
Note how getIsEnabled() is documented: "if the user hasn't
previously enabled or disabled Page Previews […] then they
are treated as if they have enabled them."

In other words: The idea that the default should be true is
encoded twice in this code. This is just not necessary. We can
remove one without loosing anything.

Motivtion: Simplifying the code and reducing the package size.

Since the code fundamentally depends on this default value
anyway, we can clear the users localStorage when they decide
to go back to the default – instead of storing a "1" which
does the same as the default.

Change-Id: I2814a1e9269979918609162a508eeee6944d9e52
2021-04-08 11:57:52 +02:00
..
changeListeners Rename many functions and files for clarity 2021-04-08 11:04:02 +02:00
gateway Much more relaxed reference type detection 2021-02-22 11:55:03 +01:00
instrumentation Minor code cleanups, e.g. utilizing arrow functions 2020-10-30 11:31:12 +01:00
integrations Hygiene: replace QUnit assert.equal with strictEqual() 2018-06-18 19:48:16 +00:00
preview eslint: Update to 0.15.3 2020-04-25 22:32:53 +01:00
reducers Rename many functions and files for clarity 2021-04-08 11:04:02 +02:00
ui Add title attribute to settings gear icon 2021-04-02 13:30:07 -06:00
.eslintrc.json build: Update eslint-config-wikimedia to 0.16.2 2020-06-26 17:05:56 +01:00
actions.test.js Rename many functions and files for clarity 2021-04-08 11:04:02 +02:00
bracketedPixelRatio.test.js build: Update linters 2018-09-11 10:26:35 -07:00
changeListener.test.js build: Update linters 2018-09-11 10:26:35 -07:00
container.test.js build: Update linters 2018-09-11 10:26:35 -07:00
counts.test.js eslint: Enforce template-curly-spacing 2019-08-15 10:24:43 +02:00
experiments.test.js build: Update eslint-config-wikimedia to 0.10.0 2019-01-31 11:05:33 +01:00
formatter.test.js Remove obsolete mediaWiki and jQuery aliases 2019-10-22 09:30:46 +02:00
getPageviewTracker.test.js Remove obsolete mediaWiki and jQuery aliases 2019-10-22 09:30:46 +02:00
integration.test.js Rename many functions and files for clarity 2021-04-08 11:04:02 +02:00
isPagePreviewsEnabled.test.js Remove not needed userSettings.hasIsEnabled() 2021-04-08 11:57:52 +02:00
isReferencePreviewsEnabled.test.js Add qunit test for conflict with popups 2020-12-10 15:47:38 +01:00
previewBehavior.test.js Remove obsolete mediaWiki and jQuery aliases 2019-10-22 09:30:46 +02:00
run.js Use 6.1.0 of @wikimedia/mw-node-qunit 2019-10-22 10:42:49 -07:00
setUserConfigFlags.test.js Add tests for bitmask code 2021-03-11 14:05:21 +01:00
stubs.js Remove not needed userSettings.hasIsEnabled() 2021-04-08 11:57:52 +02:00
title.test.js Remove obsolete mediaWiki and jQuery aliases 2019-10-22 09:30:46 +02:00
userSettings.test.js Remove not needed userSettings.hasIsEnabled() 2021-04-08 11:57:52 +02:00
wait.test.js Fix action reducer forgetting *all* duplicate dwell actions 2019-08-23 10:08:19 +02:00