Skip to content

Commit

Permalink
Add whitespace control test
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinJoyce authored and Turbo87 committed Oct 1, 2019
1 parent 2e6a418 commit bf76f0a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions transforms/angle-brackets/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,34 @@ test('unless', () => {
`);
});

test('whitespace-control', () => {
let input = `
<div>
{{~both~}}
</div>
<div>
{{~left}}
</div>
<div>
{{right~}}
</div>
`;

expect(runTest('whitespace-control.hbs', input)).toMatchInlineSnapshot(`
"
<div>
{{~both~}}
</div>
<div>
{{~left}}
</div>
<div>
{{right~}}
</div>
"
`);
});

test('skip-default-helpers', () => {
let input = `
<div id="main-container">
Expand Down

0 comments on commit bf76f0a

Please sign in to comment.