Merge "Add tests for WikiMap and WikiReference"
[lhc/web/wiklou.git] / tests / qunit / suites / resources / mediawiki / mediawiki.ForeignUpload.test.js
1 ( function ( mw ) {
2 QUnit.module( 'mediawiki.ForeignUpload', QUnit.newMwEnvironment( {} ) );
3
4 QUnit.test( 'Constructor check', function ( assert ) {
5 QUnit.expect( 3 );
6 var upload = new mw.ForeignUpload();
7
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.' );
11 } );
12 }( mediaWiki ) );