resources: Strip '$' and 'mw' from file closures
[lhc/web/wiklou.git] / tests / qunit / suites / resources / mediawiki / mediawiki.util.test.js
index 0a65788..2bd0901 100644 (file)
@@ -1,4 +1,4 @@
-( function ( mw, $ ) {
+( function () {
        var util = require( 'mediawiki.util' ),
                // Based on IPTest.php > testisIPv4
                IPV4_CASES = [
        } );
 
        QUnit.test( '$content', function ( assert ) {
-               assert.ok( util.$content instanceof jQuery, 'mw.util.$content instance of jQuery' );
+               assert.ok( util.$content instanceof $, 'mw.util.$content instance of jQuery' );
                assert.strictEqual( util.$content.length, 1, 'mw.util.$content must have length of 1' );
        } );
 
                        assert.strictEqual( util.isIPv6Address( ipCase[ 1 ] ), ipCase[ 0 ], ipCase[ 2 ] );
                } );
        } );
-}( mediaWiki, jQuery ) );
+}() );