Skip to content

Commit 2ef7356

Browse files
committed
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.
1 parent b32d425 commit 2ef7356

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/render-test-browser-tmpl.mustache

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ describe('Mustache.render', function () {
88
it('requires template to be a string', function () {
99
assert.throws(function () {
1010
Mustache.render(['dummy template'], ['foo', 'bar']);
11-
}, TypeError, 'Invalid template! Template should be a "string" but "array" was given');
11+
}, TypeError, 'Invalid template! Template should be a "string" but ' +
12+
'"array" was given as the first argument ' +
13+
'for mustache#render(template, view, partials)');
1214
});
1315

1416
var i;

0 commit comments

Comments
 (0)