summaryrefslogtreecommitdiffstats
path: root/spec/regressions.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/regressions.js')
-rw-r--r--spec/regressions.js22
1 files changed, 20 insertions, 2 deletions
diff --git a/spec/regressions.js b/spec/regressions.js
index 6a7990c..dd4eedd 100644
--- a/spec/regressions.js
+++ b/spec/regressions.js
@@ -24,7 +24,19 @@ describe('Regressions', function() {
});
it("bug reported by @fat where lambdas weren't being properly resolved", function() {
- var string = "<strong>This is a slightly more complicated {{thing}}.</strong>.\n{{! Just ignore this business. }}\nCheck this out:\n{{#hasThings}}\n<ul>\n{{#things}}\n<li class={{className}}>{{word}}</li>\n{{/things}}</ul>.\n{{/hasThings}}\n{{^hasThings}}\n\n<small>Nothing to check out...</small>\n{{/hasThings}}";
+ var string = '<strong>This is a slightly more complicated {{thing}}.</strong>.\n'
+ + '{{! Just ignore this business. }}\n'
+ + 'Check this out:\n'
+ + '{{#hasThings}}\n'
+ + '<ul>\n'
+ + '{{#things}}\n'
+ + '<li class={{className}}>{{word}}</li>\n'
+ + '{{/things}}</ul>.\n'
+ + '{{/hasThings}}\n'
+ + '{{^hasThings}}\n'
+ + '\n'
+ + '<small>Nothing to check out...</small>\n'
+ + '{{/hasThings}}';
var data = {
thing: function() {
return "blah";
@@ -39,7 +51,13 @@ describe('Regressions', function() {
}
};
- var output = "<strong>This is a slightly more complicated blah.</strong>.\n\nCheck this out:\n\n<ul>\n\n<li class=one>@fat</li>\n\n<li class=two>@dhg</li>\n\n<li class=three>@sayrer</li>\n</ul>.\n\n";
+ var output = '<strong>This is a slightly more complicated blah.</strong>.\n'
+ + 'Check this out:\n'
+ + '<ul>\n'
+ + '<li class=one>@fat</li>\n'
+ + '<li class=two>@dhg</li>\n'
+ + '<li class=three>@sayrer</li>\n'
+ + '</ul>.\n';
shouldCompileTo(string, data, output);
});