mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-12-18 17:50:43 +00:00
10 lines
372 B
JavaScript
10 lines
372 B
JavaScript
|
'use strict';
|
||
|
|
||
|
QUnit.module( 've.ui.MWReferenceResultWidget (Cite)', ve.test.utils.newMwEnvironment() );
|
||
|
|
||
|
QUnit.test( 'Initialization', function ( assert ) {
|
||
|
const widget = new ve.ui.MWReferenceResultWidget();
|
||
|
assert.true( widget instanceof OO.ui.OptionWidget );
|
||
|
assert.strictEqual( widget.$element.children( '.ve-ui-mwReferenceResultWidget-shield' ).length, 1 );
|
||
|
} );
|