%PDF- %PDF-
Direktori : /www/varak.net/wiki.varak.net/extensions/MobileFrontend/tests/node-qunit/utils/ |
Current File : /www/varak.net/wiki.varak.net/extensions/MobileFrontend/tests/node-qunit/utils/mw.js |
var headless = typeof window !== 'object', newMockMediaWiki = require( './mockMediaWiki' ); module.exports = { /** * @param {sinon.SinonSandbox} sandbox * @param {NodeJS.Global} global * @return {void} */ setUp: function ( sandbox, global ) { if ( headless ) { global.mw = global.mw || undefined; sandbox.stub( global, 'mw', newMockMediaWiki() ); } } };