resources: Strip '$' and 'mw' from file closures
[lhc/web/wiklou.git] / tests / qunit / suites / resources / mediawiki / mediawiki.cldr.test.js
index 4170897..32457fa 100644 (file)
@@ -1,4 +1,4 @@
-( function ( mw, $ ) {
+( function () {
        var pluralTestcases = {
                /*
                 * Sample:
@@ -65,7 +65,7 @@
                QUnit.test( 'Plural Test for ' + langCode, function ( assert ) {
                        var i;
                        for ( i = 0; i < tests.length; i++ ) {
-                               assert.equal(
+                               assert.strictEqual(
                                        mw.language.convertPlural( tests[ i ][ 0 ], tests[ i ][ 1 ] ),
                                        tests[ i ][ 2 ],
                                        tests[ i ][ 3 ]
                } );
        }
 
+       // eslint-disable-next-line no-restricted-properties
        $.each( pluralTestcases, function ( langCode, tests ) {
                if ( langCode === mw.config.get( 'wgUserLanguage' ) ) {
                        pluralTest( langCode, tests );
                }
        } );
-}( mediaWiki, jQuery ) );
+}() );