mediawiki.user: Minor clean up of code and unit tests
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 16 Sep 2016 00:05:25 +0000 (17:05 -0700)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 16 Sep 2016 00:32:37 +0000 (17:32 -0700)
commitc4c7007de6a71e6b7cda85a0b4867104bc33ef5c
treeee5a54e015daa26ad5ddbaea6cfbc6b15340f4a3
parenta9db740b3ca3d56d33f34ef119bd828a4c1e93c4
mediawiki.user: Minor clean up of code and unit tests

* Clarify getRegistration() return documentation and minor
  optimisation of code order.

* Fix typo in test name for getUserInfo().

* Remove redundant test expect numbers.
  Follows-up 7c363752ed.

* Separate getter assertions for anonymous and logged-in.
  Avoid changing the fixture mid-test. Let setup/teardown
  clean up in the middle.

Change-Id: If777d44a571ac590e91ed84060ea714df67f8f2f
resources/src/mediawiki/mediawiki.user.js
tests/qunit/suites/resources/mediawiki/mediawiki.user.test.js