mediawiki-extensions-Cite/modules/ve-cite/tests/ve.ui.MWReferenceResultWidget.test.js

10 lines
372 B
JavaScript
Raw Normal View History

'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 );
} );