mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-12-11 22:56:01 +00:00
5a2154de38
Change-Id: I8d96b69e8c15bc8ad84cfb0c511396e5b3e7ac20
19 lines
581 B
JavaScript
19 lines
581 B
JavaScript
'use strict';
|
|
|
|
QUnit.module( 've.ui.MWReferenceContextItem (Cite)', ve.test.utils.newMwEnvironment() );
|
|
|
|
QUnit.test( 'getReferenceNode', ( assert ) => {
|
|
// XXX: This is a regression test with a fragile setup. Please feel free to delete this test
|
|
// when you feel like it doesn't make sense to update it.
|
|
const context = {
|
|
isMobile: () => false,
|
|
getSurface: () => ( {
|
|
isReadOnly: () => false
|
|
} )
|
|
};
|
|
const model = { isEditable: () => false };
|
|
|
|
const item = new ve.ui.MWReferenceContextItem( context, model );
|
|
assert.strictEqual( item.getReferenceNode(), null );
|
|
} );
|