mediawiki-extensions-Cite/tests/qunit/ve-cite/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 );
} );