mediawiki-skins-MinervaNeue/tests/qunit/skins.minerva.scripts
Timo Tijhof 5a65bd5200 tests: Minor clean up of in TitleUtil/UriUtil tests
* Declare variables inline, as per the current code conventions.

* Use built-in assert.true() and assert.false() in a few places.

* Use built-in QUnit.test.each() to remove need for ad-hoc loops and
  inline composing of assertion messages with common prefixes. This
  also creates clearer and more detailed test reports, and more granular
  ability to re-run specific test cases.

* Remove unneeded use of `QUnit.newMwEnvironment()`.

* Simplify restoring of mw.Uri by storing the original reference
  once outside the test, and then re-using that each time.

* Use mw.config.set() for improved familiarity and rely on natural
  restoration instead of the extra 'config' key abstraction which is
  another thing to learn and understand.

Change-Id: I796e034854203d2e0e78e510458f4b34603e9901
2022-05-15 00:46:28 +00:00
..
page-issues tests: Minor clean up of in TitleUtil/UriUtil tests 2022-05-15 00:46:28 +00:00
AB.test.js Embrace packageFiles 2019-07-16 18:04:10 +00:00
downloadPageAction.test.js build: Update wdio devDependencies 2021-11-09 14:41:17 +00:00
index.js watchstar: Add temp-watched css class when expiry is present 2020-09-24 12:21:33 -04:00
TitleUtil.test.js tests: Minor clean up of in TitleUtil/UriUtil tests 2022-05-15 00:46:28 +00:00
UriUtil.test.js tests: Minor clean up of in TitleUtil/UriUtil tests 2022-05-15 00:46:28 +00:00
watchstar.test.js Use watchstar() instead of deprecated jQuery event to update watchstar classes 2021-12-21 16:43:57 +00:00