mediawiki-extensions-Popups/tests/node-qunit
joakin 82e315b124 Tests: Migrate {integration,actions}.test.js to node qunit
Because of the globals mw.popups.wait usage and mocking in both actions
and integration, they need to be migrated in a single step, fixing them
both to require wait.js and mock using mock-require instead of the
global variable.

Additional changes:
* Fix FIXMEs about actions.js using the global mw.popups.wait instead of
  the require one.
* Fix the unit tests to use require mocking for wait.js instead of
  global variable mocking in both integration and actions tests
* Change tests that use deferreds and promises to be async qunit tests
  (Deferreds are asynchronous with jQuery in node, apparently they
  weren't in the browser)
* Change integration.test.js to use require on Redux and ReduxThunk

Change-Id: I8e3e87b158bd11c9620e77d0a73e611cf9e82183
2017-02-27 18:17:28 +01:00
..
changeListeners Tests: Migrate changeListeners/render.test.js to node-qunit 2017-02-22 12:14:05 +01:00
gateway Tests: Migrate gateway/rest.test.js to node qunit 2017-02-22 12:14:07 +01:00
preview Test: Migrate preview/model.test.js to node-qunit 2017-02-20 20:01:01 +01:00
reducers Test: Migrate reducers/eventLogging.test.js to node-qunit 2017-02-20 20:01:01 +01:00
actions.test.js Tests: Migrate {integration,actions}.test.js to node qunit 2017-02-27 18:17:28 +01:00
changeListener.test.js Test: Migrate changeListener.test.js to node-qunit 2017-02-20 20:01:01 +01:00
counts.test.js Set up qunit running in node to migrate tests to commonjs 2017-02-20 20:01:01 +01:00
integration.test.js Tests: Migrate {integration,actions}.test.js to node qunit 2017-02-27 18:17:28 +01:00
isEnabled.test.js Test: Migrate isEnabled.test.js to node-qunit 2017-02-20 20:01:01 +01:00
previewBehavior.test.js Tests: Migrate previewBehavior.test.js to node qunit 2017-02-22 12:14:07 +01:00
settingsDialog.test.js Tests: Migrate settingsDialog.test.js to node qunit 2017-02-22 12:14:07 +01:00
stubs.js Test: Migrate isEnabled.test.js to node-qunit 2017-02-20 20:01:01 +01:00
wait.test.js Test: Migrate wait.test.js to node-qunit 2017-02-22 12:13:37 +01:00