소스 검색

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;


불러오는 중...
취소
저장