build: Enable qunit/no-assert-equal and enforce
[lhc/web/wiklou.git] / tests / qunit / suites / resources / mediawiki / mediawiki.RegExp.test.js
index 97c82fb..485bac0 100644 (file)
@@ -1,4 +1,4 @@
-( 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 ) );