/* global sinon */
-( function ( $, mw, QUnit ) {
+( function () {
'use strict';
var addons, nested;
// Check for incomplete animations/requests/etc and throw if there are any.
if ( $.timers && $.timers.length !== 0 ) {
timers = $.timers.length;
+ // eslint-disable-next-line jquery/no-each-util
$.each( $.timers, function ( i, timer ) {
var node = timer.elem;
mw.log.warn( 'Unfinished animation #' + i + ' in ' + timer.queue + ' queue on ' +
QUnit.whenPromisesComplete = function () {
var altPromises = [];
+ // When we have ES6 support we'll be able to use Array.from here
+ // eslint-disable-next-line jquery/no-each-util
$.each( arguments, function ( i, arg ) {
var alt = $.Deferred();
altPromises.push( alt );
} );
} );
-}( jQuery, mediaWiki, QUnit ) );
+}() );