-( function ( mw ) {
+( function () {
QUnit.module( 'mediawiki.template.mustache', {
- setup: function () {
+ beforeEach: function () {
// Stub register some templates
this.sandbox.stub( mw.templates, 'get' ).returns( {
'test_greeting.mustache': '<div>{{foo}}{{>suffix}}</div>',
}
} );
- QUnit.test( 'render', 2, function ( assert ) {
+ QUnit.test( 'render', function ( assert ) {
var html, htmlPartial, data, partials,
template = mw.template.get( 'stub', 'test_greeting.mustache' ),
partial = mw.template.get( 'stub', 'test_greeting_suffix.mustache' );
assert.strictEqual( htmlPartial, 'Hello goodbye', 'Render with partial' );
} );
-}( mediaWiki ) );
+}() );