mediawiki.api: Add unit tests for pipe-joining non-string values
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 31 Jan 2017 00:42:23 +0000 (00:42 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 9 Feb 2017 20:04:49 +0000 (20:04 +0000)
commit1a3d0d82b4809b73978f5801dc74b0dfa86bc1d7
treee70565f00e22a1b22c99f15fafeaab5491bc634b
parentd03bc97cdfdfa8430269f5d4a4ac5b8ddbb5823d
mediawiki.api: Add unit tests for pipe-joining non-string values

Also document the fact that null/undefined in array values are submitted
to the API as empty string. We may want to change this.

Change-Id: I099b055ba8ddd367b6df2dd8f2997d8c6cd243df
resources/src/mediawiki/api.js
tests/qunit/suites/resources/mediawiki.api/mediawiki.api.test.js