Skip to content

Commit 120943b

Browse files
authored
Merge pull request #149 from Turbo87/splattributes
Add test case for splattributes
2 parents c6f3da0 + e0eab3f commit 120943b

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

transforms/angle-brackets/test.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,26 @@ test('sample2', () => {
606606
`);
607607
});
608608

609+
test('splattributes', () => {
610+
let input = `
611+
{{#wrapper}}
612+
<div ...attributes>
613+
{{foo bar="baz"}}
614+
</div>
615+
{{/wrapper}}
616+
`;
617+
618+
expect(runTest('splattributes.hbs', input)).toMatchInlineSnapshot(`
619+
"
620+
<Wrapper>
621+
<div ...attributes>
622+
<Foo @bar=\\"baz\\" />
623+
</div>
624+
</Wrapper>
625+
"
626+
`);
627+
});
628+
609629
test('t-helper', () => {
610630
let input = `
611631
{{t "some.string" param="string" another=1}}

0 commit comments

Comments
 (0)