mediawiki-extensions-Popups/tests/qunit/ext.popups/settingsDialog.test.js

29 lines
688 B
JavaScript
Raw Normal View History

( function ( $, mw ) {
QUnit.module( 'ext.popups/settingsDialog' );
QUnit.test( '#render', function ( assert ) {
var boundActions = {
saveSettings: function () {},
hideSettings: function () {}
},
expected = {
appendTo: function () {},
show: function () {},
2016-12-13 18:04:03 +00:00
hide: function () {},
toggleHelp: function () {},
setEnabled: function () {}
},
result = mw.popups.createSettingsDialogRenderer()( boundActions );
// Specifically NOT a deep equal. Only structure.
assert.propEqual(
result,
expected
);
} );
// FIXME: Add Qunit integration tests about the rendering and the behavior of
// the settings dialog.
} )( jQuery, mediaWiki );