import { createStubTitle } from '../stubs'; import createReferenceGateway from '../../../src/gateway/reference'; QUnit.module( 'ext.popups/gateway/reference', { beforeEach() { mw.msg = ( key ) => `<${key}>`; this.$sourceElement = $( '' ).appendTo( $( '' ).attr( 'id', 'cite_ref-1' ).appendTo( document.body ) ); this.$references = $( '