瀏覽代碼

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;


Loading…
取消
儲存