( function ( mw, $ ) { /** * processLinks QUnit tests remain integration tests given their dependency * on a running MediaWiki instance with properly configured variables for * 'wgContentNamespaces', 'wgArticlePath', and other configuration variables * accessed by `mw.Title`. */ QUnit.module( 'ext.popups/processLinks @integration', { setup: function () { this.config = new mw.Map(); this.config.set( { wgArticlePath: '/wiki/$1', wgContentNamespaces: [ 0 ] } ); this.blacklist = [ '.extiw', '.image', '.new', '.internal', '.external', '.oo-ui-buttonedElement-button', '.cancelLink a' ]; } } ); QUnit.test( 'it should only return eligible links', 1, function ( assert ) { var $container = $( '