Test-case for #1252: Using @partial-block twice in a template not possible

This commit is contained in:
Nils Knappmeier
2016-12-31 00:32:03 +01:00
parent a023cb4dd9
commit f3d266a66e
+7
View File
@@ -249,6 +249,13 @@ describe('partials', function() {
true,
'success');
});
it('should be able to render block from partial twice', function() {
shouldCompileToWithPartials(
'{{#> dude}}success{{/dude}}',
[{}, {}, {dude: '{{> @partial-block }} {{> @partial-block }}'}],
true,
'success success');
});
it('should render block from partial with context', function() {
shouldCompileToWithPartials(
'{{#> dude}}{{value}}{{/dude}}',