2017-12-29 20:14:31 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`basic-handlebars.hbs 1`] = `
|
|
|
|
<script id="entry-template" type="text/x-handlebars-template">
|
|
|
|
<div class="entry">
|
|
|
|
<h1>{{title}}</h1>
|
|
|
|
<div class="body">
|
|
|
|
{{body}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</script>
|
2018-05-21 01:53:01 +03:00
|
|
|
|
|
|
|
<div class="{{hello}} {{world}}"></div>
|
2017-12-29 20:14:31 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
<script id="entry-template" type="text/x-handlebars-template">
|
|
|
|
<div class="entry">
|
|
|
|
<h1>
|
|
|
|
{{title}}
|
|
|
|
</h1>
|
|
|
|
<div class="body">
|
|
|
|
{{body}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</script>
|
2018-05-21 01:53:01 +03:00
|
|
|
<div class="{{hello}} {{world}}"></div>
|
2017-12-29 20:14:31 +03:00
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`comments.hbs 1`] = `
|
|
|
|
<div class="entry">
|
|
|
|
{{! This comment will not be in the output }}
|
|
|
|
{{!-- This comment as }} and will not be in the output --}}
|
|
|
|
<!-- This comment will be in the output -->
|
|
|
|
</div>
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
<div class="entry">
|
|
|
|
{{! This comment will not be in the output }}
|
|
|
|
{{!-- This comment as }} and will not be in the output --}}
|
|
|
|
<!-- This comment will be in the output -->
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`each.hbs 1`] = `
|
|
|
|
<div id="comments">
|
|
|
|
{{#each comments}}
|
|
|
|
<h2><a href="/posts/{{permalink}}#{{id}}">{{title}}</a></h2>
|
|
|
|
<div>{{body}}</div>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
<div id="comments">
|
|
|
|
{{#each comments}}
|
|
|
|
<h2>
|
|
|
|
<a href="/posts/{{permalink}}#{{id}}">
|
|
|
|
{{title}}
|
|
|
|
</a>
|
|
|
|
</h2>
|
|
|
|
<div>
|
|
|
|
{{body}}
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`if.hbs 1`] = `
|
|
|
|
{{#if title}}
|
|
|
|
{{permalink}}
|
|
|
|
{{/if}}
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
{{#if title}}
|
|
|
|
{{permalink}}
|
|
|
|
{{/if}}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`if-else.hbs 1`] = `
|
|
|
|
<h1>
|
|
|
|
{{#if isAtWork}}
|
|
|
|
Ship that code!
|
|
|
|
{{else if isReading}}
|
|
|
|
You can finish War and Peace eventually...
|
|
|
|
{{else}}
|
|
|
|
Go to bed!
|
|
|
|
{{/if}}
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<h2>
|
|
|
|
{{#if a}}
|
|
|
|
A
|
|
|
|
{{else}}
|
|
|
|
B
|
|
|
|
{{/if}}
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
<h1>
|
|
|
|
{{#if isAtWork}}
|
|
|
|
Ship that code!
|
|
|
|
{{else if isReading}}
|
|
|
|
You can finish War and Peace eventually...
|
|
|
|
{{else}}
|
|
|
|
Go to bed!
|
|
|
|
{{/if}}
|
|
|
|
</h1>
|
|
|
|
<h2>
|
|
|
|
{{#if a}}
|
|
|
|
A
|
|
|
|
{{else}}
|
|
|
|
B
|
|
|
|
{{/if}}
|
|
|
|
</h2>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`nested-path.hbs 1`] = `
|
|
|
|
<div class="entry">
|
|
|
|
<h1>{{title}}</h1>
|
|
|
|
<h2>By {{author.name}}</h2>
|
|
|
|
|
|
|
|
<div class="body">
|
|
|
|
{{body}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
<div class="entry">
|
|
|
|
<h1>
|
|
|
|
{{title}}
|
|
|
|
</h1>
|
|
|
|
<h2>
|
|
|
|
By
|
|
|
|
{{author.name}}
|
|
|
|
</h2>
|
|
|
|
<div class="body">
|
|
|
|
{{body}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
2018-05-24 21:16:50 +03:00
|
|
|
|
|
|
|
exports[`raw.hbs 1`] = `
|
|
|
|
<p>{{{raw}}}</p>
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
<p>
|
|
|
|
{{{raw}}}
|
|
|
|
</p>
|
|
|
|
`;
|