Add some more tests, and properly handle errors across the boundary in tests

This commit is contained in:
wycats
2010-11-25 16:09:42 -08:00
parent 4624eddf0b
commit 7d0204bf9f
3 changed files with 35 additions and 8 deletions
+2 -2
View File
@@ -67,7 +67,7 @@ Handlebars.PrintVisitor.prototype.mustache = function(mustache) {
}
var params = "[" + paramStrings.join(", ") + "]";
return this.pad("{{ " + this.accept(mustache.id) + " " + params + "}}");
return this.pad("{{ " + this.accept(mustache.id) + " " + params + " }}");
};
Handlebars.PrintVisitor.prototype.partial = function(partial) {
@@ -75,7 +75,7 @@ Handlebars.PrintVisitor.prototype.partial = function(partial) {
};
Handlebars.PrintVisitor.prototype.STRING = function(string) {
return string.string;
return '"' + string.string + '"';
};
Handlebars.PrintVisitor.prototype.ID = function(id) {