Permalink
Browse files

Use XML-like tags in test instead of bizarre dot delimiters

1 parent 601ce8a commit 21696005cd9e5a3ea2150431df44fd13da2c405c @lawnsea lawnsea committed Aug 17, 2016
Showing with 4 additions and 4 deletions.
  1. +4 −4 spec/partials.js
View
@@ -272,17 +272,17 @@ describe('partials', function() {
});
it('should render nested partial blocks', function() {
shouldCompileToWithPartials(
- '.template-start.{{#> outer}}{{value}}{{/outer}}.template-end.',
+ '<template>{{#> outer}}{{value}}{{/outer}}</template>',
[
{value: 'success'},
{},
{
- outer: '.outer-start.{{#> nested}}.outer-partial-block-start.{{> @partial-block}}.outer-partial-block-end.{{/nested}}.outer-end.',
- nested: '.nested-start.{{> @partial-block}}.nested-end.'
+ outer: '<outer>{{#> nested}}<outer-block>{{> @partial-block}}</outer-block>{{/nested}}</outer>',
+ nested: '<nested>{{> @partial-block}}</nested>'
}
],
true,
- '.template-start..outer-start..nested-start..outer-partial-block-start.success.outer-partial-block-end..nested-end..outer-end..template-end.');
+ '<template><outer><nested><outer-block>success</outer-block></nested></outer></template>');
});
});

0 comments on commit 2169600

Please sign in to comment.