Skip to content

Commit 842844b

Browse files
committed
Add test case for inline link-to with subexpression caption
1 parent 2e6a418 commit 842844b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

transforms/angle-brackets/test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ test('link-to-inline', () => {
370370
segment
371371
class="t__em-link"
372372
}}
373+
{{link-to (t "show") "flight" event.flight.id class="btn btn-default btn-sm pull-right"}}
373374
`;
374375

375376
/**
@@ -383,6 +384,7 @@ test('link-to-inline', () => {
383384
<LinkTo @route=\\"apps.segments\\" class=\\"tabs__discrete-tab\\" @activeClass=\\"o__selected\\" @current-when=\\"apps.segments\\" data-test-segment-link=\\"segments\\">Segments</LinkTo>
384385
<LinkTo @route={{this.dynamicPath}} class=\\"tabs__discrete-tab\\" @activeClass=\\"o__selected\\" @current-when=\\"apps.segments\\" data-test-segment-link=\\"segments\\">Segments</LinkTo>
385386
<LinkTo @route=\\"apps.app.companies.segments.segment\\" @model={{segment}} class=\\"t__em-link\\">{{segment.name}}</LinkTo>
387+
<LinkTo @route=\\"flight\\" @model={{event.flight.id}} class=\\"btn btn-default btn-sm pull-right\\">{{t \\"show\\"}}</LinkTo>
386388
"
387389
`);
388390
});

0 commit comments

Comments
 (0)