Skip to content

Commit

Permalink
Add test reproducing handlebars-lang#1185
Browse files Browse the repository at this point in the history
  • Loading branch information
lawnsea committed Nov 9, 2016
1 parent a599424 commit 948b0a3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/partials.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,15 @@ describe('partials', function() {
true,
'success');
});
it('should render nested inline partials', function() {
shouldCompileToWithPartials(
'{{#*inline "outer"}}{{#>inner}}<outer-block>{{>@partial-block}}</outer-block>{{/inner}}{{/inline}}' +
'{{#*inline "inner"}}<inner>{{>@partial-block}}</inner>{{/inline}}' +
'{{#>outer}}{{value}}{{/outer}}',
[{value: 'success'}, {}, {}],
true,
'<inner><outer-block>success</outer-block></inner>');
});
});

it('should pass compiler flags', function() {
Expand Down

0 comments on commit 948b0a3

Please sign in to comment.