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