-( function ( mw, $ ) {
+( function () {
QUnit.module( 'mediawiki.api', QUnit.newMwEnvironment( {
setup: function () {
this.server = this.sandbox.useFakeServer();
var self = this,
requests = this.requests = [];
this.api = new mw.Api();
- this.sandbox.stub( jQuery, 'ajax', function () {
+ this.sandbox.stub( $, 'ajax', function () {
var request = $.extend( {
abort: self.sandbox.spy()
}, $.Deferred() );
assert.ok( request.abort.calledOnce, 'abort request number ' + i );
} );
} );
-}( mediaWiki, jQuery ) );
+}() );