From 2ef7356ec2a522dc74bfa43a80304bf2962ec12c Mon Sep 17 00:00:00 2001 From: Phillip Johnsen Date: Tue, 28 Jul 2015 09:05:57 +0200 Subject: [PATCH] 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. --- test/render-test-browser-tmpl.mustache | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/render-test-browser-tmpl.mustache b/test/render-test-browser-tmpl.mustache index bf6a0e3..8083891 100644 --- a/test/render-test-browser-tmpl.mustache +++ b/test/render-test-browser-tmpl.mustache @@ -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;