FTiny test tweak - quoted href of a link in one of the test templates, just because it was bugging me.

This commit is contained in:
Alan Johnson
2010-08-12 23:15:01 -04:00
parent 5bd5d4eed4
commit 467024d1e2
+2 -2
View File
@@ -206,9 +206,9 @@ test("partials with context", function() {
test("partial in a partial", function() {
var string = "Dudes: {{#dudes}}{{> dude}}{{/dudes}}";
var dude = "{{name}} {{> url}} ";
var url = "<a href={{url}}>{{url}}</a>";
var url = "<a href='{{url}}'>{{url}}</a>";
var hash = {dudes: [{name: "Yehuda", url: "http://yehuda"}, {name: "Alan", url: "http://alan"}]};
shouldCompileTo(string, [hash, {partials: {dude: dude, url: url}}], "Dudes: Yehuda <a href=http://yehuda>http://yehuda</a> Alan <a href=http://alan>http://alan</a> ", "Partials are rendered inside of other partials");
shouldCompileTo(string, [hash, {partials: {dude: dude, url: url}}], "Dudes: Yehuda <a href='http://yehuda'>http://yehuda</a> Alan <a href='http://alan'>http://alan</a> ", "Partials are rendered inside of other partials");
});
module("safestring");