mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-11-24 00:05:50 +00:00
1071a53446
Change-Id: I98cbfd20fd85cdf8bb8dc1276ebbc516992212c3
24 lines
514 B
JavaScript
24 lines
514 B
JavaScript
'use strict';
|
|
|
|
const wikimediaTestingUtils = require( '@wikimedia/mw-node-qunit' );
|
|
const fn = () => {};
|
|
|
|
global.CSS = {
|
|
escape: ( str ) => str
|
|
};
|
|
|
|
global.OO = {
|
|
inheritClass: ( ClassNameObject ) => {
|
|
ClassNameObject.super = fn;
|
|
ClassNameObject.prototype.on = fn;
|
|
},
|
|
initClass: fn,
|
|
EventEmitter: fn
|
|
};
|
|
|
|
const { TextEncoder, TextDecoder } = require( 'util' );
|
|
global.TextEncoder = TextEncoder;
|
|
global.TextDecoder = TextDecoder;
|
|
|
|
wikimediaTestingUtils.setUp( /* disable QUnit sandboxing feature */ false );
|