Skip to content

Commit 72366ca

Browse files
authored
Merge pull request #47 from ember-codemods/gj/failing-test
Add whitespace control test
2 parents 2e6a418 + bf76f0a commit 72366ca

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

transforms/angle-brackets/test.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,34 @@ test('unless', () => {
684684
`);
685685
});
686686

687+
test('whitespace-control', () => {
688+
let input = `
689+
<div>
690+
{{~both~}}
691+
</div>
692+
<div>
693+
{{~left}}
694+
</div>
695+
<div>
696+
{{right~}}
697+
</div>
698+
`;
699+
700+
expect(runTest('whitespace-control.hbs', input)).toMatchInlineSnapshot(`
701+
"
702+
<div>
703+
{{~both~}}
704+
</div>
705+
<div>
706+
{{~left}}
707+
</div>
708+
<div>
709+
{{right~}}
710+
</div>
711+
"
712+
`);
713+
});
714+
687715
test('skip-default-helpers', () => {
688716
let input = `
689717
<div id="main-container">

0 commit comments

Comments
 (0)