resources: Strip '$' and 'mw' from file closures
[lhc/web/wiklou.git] / tests / qunit / suites / resources / mediawiki.api / mediawiki.api.watch.test.js
index 8641469..eff662e 100644 (file)
@@ -1,4 +1,4 @@
-( function ( mw ) {
+( function () {
        QUnit.module( 'mediawiki.api.watch', QUnit.newMwEnvironment( {
                setup: function () {
                        this.server = this.sandbox.useFakeServer();
@@ -17,7 +17,7 @@
                } );
 
                return new mw.Api().watch( 'Foo' ).done( function ( item ) {
-                       assert.equal( item.title, 'Foo' );
+                       assert.strictEqual( item.title, 'Foo' );
                } );
        } );
 
@@ -34,7 +34,7 @@
                } );
 
                return new mw.Api().watch( [ 'Foo' ] ).done( function ( items ) {
-                       assert.equal( items[ 0 ].title, 'Foo' );
+                       assert.strictEqual( items[ 0 ].title, 'Foo' );
                } );
        } );
 
@@ -52,9 +52,9 @@
                } );
 
                return new mw.Api().watch( [ 'Foo', 'Bar' ] ).done( function ( items ) {
-                       assert.equal( items[ 0 ].title, 'Foo' );
-                       assert.equal( items[ 1 ].title, 'Bar' );
+                       assert.strictEqual( items[ 0 ].title, 'Foo' );
+                       assert.strictEqual( items[ 1 ].title, 'Bar' );
                } );
        } );
 
-}( mediaWiki ) );
+}() );