X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fqunit%2Fsuites%2Fresources%2Fmediawiki%2Fmediawiki.template.mustache.test.js;h=ab1d55e409980d02aa7d1ebba8b4a09edf77a537;hb=5e18d925e7081f2596d54f87a6e4898001365356;hp=38ae5e490faf8bb51b818ff0dedebc2b75f07ab8;hpb=939199bcea28a3b13c49c0f808d11d415660b924;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/qunit/suites/resources/mediawiki/mediawiki.template.mustache.test.js b/tests/qunit/suites/resources/mediawiki/mediawiki.template.mustache.test.js index 38ae5e490f..ab1d55e409 100644 --- a/tests/qunit/suites/resources/mediawiki/mediawiki.template.mustache.test.js +++ b/tests/qunit/suites/resources/mediawiki/mediawiki.template.mustache.test.js @@ -1,7 +1,7 @@ ( function ( mw ) { QUnit.module( 'mediawiki.template.mustache', { - setup: function () { + beforeEach: function () { // Stub register some templates this.sandbox.stub( mw.templates, 'get' ).returns( { 'test_greeting.mustache': '
{{foo}}{{>suffix}}
', @@ -10,7 +10,7 @@ } } ); - 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' );