Skip to content

Commit e0eab3f

Browse files
committed
Add test case for splattributes
1 parent 72366ca commit e0eab3f

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
@@ -604,6 +604,26 @@ test('sample2', () => {
604604
`);
605605
});
606606

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

0 commit comments

Comments
 (0)