mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-12-18 02:50:43 +00:00
d244328cd3
* eslint-config-wikimedia: 0.20.1 → 0.24.0 * grunt-banana-checker: 0.9.0 → 0.10.0 * @wikimedia/mw-node-qunit: 6.2.1 → 7.0.0 Change-Id: Ied24102025b02422a6a807235bcb53bc5f6e7c98
22 lines
499 B
JavaScript
22 lines
499 B
JavaScript
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 );
|