-( function ( mw, $ ) {
+( function ( mw ) {
QUnit.module( 'mediawiki.RegExp' );
QUnit.test( 'escape', function ( assert ) {
'0123456789'
].join( '' );
- $.each( specials, function ( i, str ) {
+ specials.forEach( function ( str ) {
assert.propEqual( str.match( new RegExp( mw.RegExp.escape( str ) ) ), [ str ], 'Match ' + str );
} );
- assert.equal( mw.RegExp.escape( normal ), normal, 'Alphanumerals are left alone' );
+ assert.strictEqual( mw.RegExp.escape( normal ), normal, 'Alphanumerals are left alone' );
} );
-}( mediaWiki, jQuery ) );
+}( mediaWiki ) );