浏览代码

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 年前
父节点
当前提交
2ef7356ec2
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      test/render-test-browser-tmpl.mustache

+ 3
- 1
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;


正在加载...
取消
保存