Parcourir la source

Equal error message test in .render() for server and browser.

This fixes a small blooper introduced in a3f4339.
Error message thrown for invalid template type, should be equal on
the server and in the browser.
tags/v2.2.0
Phillip Johnsen il y a 10 ans
Parent
révision
2ef7356ec2
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. +3
    -1
      test/render-test-browser-tmpl.mustache

+ 3
- 1
test/render-test-browser-tmpl.mustache Voir le fichier

@@ -8,7 +8,9 @@ describe('Mustache.render', function () {
it('requires template to be a string', function () {
assert.throws(function () {
Mustache.render(['dummy template'], ['foo', 'bar']);
}, TypeError, 'Invalid template! Template should be a "string" but "array" was given');
}, TypeError, 'Invalid template! Template should be a "string" but ' +
'"array" was given as the first argument ' +
'for mustache#render(template, view, partials)');
});

var i;


Chargement…
Annuler
Enregistrer