'use strict'; { QUnit.module.if( 'ext.cite.referencePreviews#createReferenceGateway', mw.loader.getModuleNames().includes( 'ext.popups.main' ), { beforeEach: function () { this.$sourceElement = $( '' ).appendTo( $( '' ).attr( 'id', 'cite_ref-1' ).appendTo( document.body ) ); this.$references = $( '