mediawiki-extensions-Popups/tests/node-qunit/reducers
Thiemo Kreuz 51dd4b2807 Make nextState support non-flat updates
The nextState() function was not able to understand updates that
are deeper than a single level. Example:

nextState( state, { pagePreviews: { enabled: true } } )

Before, this would replace whatever was in the "pagePreviews"
property with { enabled: true }, but not merge it. In some places
a single level of recursion was done manually because of this.
This can be removed now.

This is done in preparation for splitting the "enabled" flag into
separate ones for each popup type.

Bug: T277639
Change-Id: I35911c18018ba7cd1633a4c882b978656c3fee36
2021-04-12 13:46:18 +02:00
..
eventLogging.test.js Make nextState support non-flat updates 2021-04-12 13:46:18 +02:00
nextState.test.js Make nextState support non-flat updates 2021-04-12 13:46:18 +02:00
pageviews.test.js Hygiene: use actionsTest consts instead of hardcoded states 2018-07-13 17:12:49 +02:00
preview.test.js Rename many functions and files for clarity 2021-04-08 11:04:02 +02:00
settings.test.js Rename many functions and files for clarity 2021-04-08 11:04:02 +02:00
statsv.test.js build: Update linters 2018-09-11 10:26:35 -07:00