| 1 | 'use strict'; |
| 2 | |
| 3 | ( function () { |
| 4 | QUnit.module( 've.ui.MWReferenceResultWidget (Cite)', ve.test.utils.newMwEnvironment() ); |
| 5 | |
| 6 | function getConfigMock() { |
| 7 | return { |
| 8 | item: { |
| 9 | $refContent: '', |
| 10 | reference: {}, |
| 11 | footnoteLabel: '', |
| 12 | name: '' |
| 13 | } |
| 14 | }; |
| 15 | } |
| 16 | |
| 17 | QUnit.test( 'Initialization', ( assert ) => { |
| 18 | const widget = new ve.ui.MWReferenceResultWidget( getConfigMock() ); |
| 19 | assert.true( widget instanceof OO.ui.OptionWidget ); |
| 20 | assert.strictEqual( widget.$element.children( '.ve-ui-mwReferenceResultWidget-shield' ).length, 0 ); |
| 21 | } ); |
| 22 | }() ); |