mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-18 03:31:34 +00:00
72df451bd3
Help with readability by using module.exports and require rather than the MobileFrontend provided mw.mobileFrontend module manager (and avoid adopting webpack at this time) Replace usages of mw.mobileFrontend.require with local require and module.exports (compatible with RL or Node implementation) Changes: * Notifications modules are merged into skins.minerva.scripts and initialised via a client side check. * new file overlayManager for exporting an overlayManager singleton rather than being hidden inside resources/skins.minerva.scripts/init.js * All M.define/M.requires swapped out for require where possible The `define` method is now forbidden in the repo. Bug: T212944 Change-Id: I44790dd3fc6fe42bb502d79c39c4081c223bf2b1
16 lines
666 B
JavaScript
16 lines
666 B
JavaScript
// Since tests.minerva.scripts does
|
|
// not pull in the entire module skins.minerva.scripts
|
|
// we have to stub certain templates to make it appear like its been loaded.
|
|
mw.template.add( 'skins.minerva.scripts', 'IssueNotice.mustache', '' );
|
|
mw.template.add( 'skins.minerva.scripts', 'badge.mustache',
|
|
mw.template.get( 'tests.skins.minerva', 'badge.mustache' ).getSource() );
|
|
module.exports = [
|
|
require( './NotificationBadge.test.js' ),
|
|
require( './downloadPageAction.test.js' ),
|
|
require( './page-issues/parser.test.js' ),
|
|
require( './AB.test.js' ),
|
|
require( './page-issues/index.test.js' ),
|
|
require( './UriUtil.test.js' ),
|
|
require( './TitleUtil.test.js' )
|
|
];
|