2 QUnit
.module( 'mediawiki.ForeignUpload', QUnit
.newMwEnvironment( {} ) );
4 QUnit
.test( 'Constructor check', function ( assert
) {
6 var upload
= new mw
.ForeignUpload();
8 assert
.ok( upload
, 'The ForeignUpload constructor is working.' );
9 assert
.strictEqual( upload
.targetHost
, 'commons.wikimedia.org', 'Default target host is correct' );
10 assert
.ok( upload
.api
instanceof mw
.ForeignApi
, 'API is correctly configured to point at a foreign wiki.' );