Selaa lähdekoodia

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 10 vuotta sitten
vanhempi
commit
2ef7356ec2
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. +3
    -1
      test/render-test-browser-tmpl.mustache

+ 3
- 1
test/render-test-browser-tmpl.mustache Näytä tiedosto

@@ -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;


Loading…
Peruuta
Tallenna