mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-18 11:35:54 +00:00
30c12b3ddd
The hook is deprecated as of this release cycle, see: <https://www.mediawiki.org/wiki/Manual:Hooks/ResourceLoaderTestModules>. Moving away from PHP code. This can now be done from JSON, and encourages use of a single module that is automatically named and registered as needed. Change-Id: I382692c70ca8e5f5ea658b07ebea6c47dd541724
16 lines
663 B
JavaScript
16 lines
663 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( 'test.MinervaNeue', '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' )
|
|
];
|