Skip to content

Commit

Permalink
Add failing test for #14924 and #16172
Browse files Browse the repository at this point in the history
(cherry picked from commit 830d766)
  • Loading branch information
chancancode committed Sep 25, 2018
1 parent 1140e27 commit b5ab036
Showing 1 changed file with 23 additions and 0 deletions.
Expand Up @@ -503,5 +503,28 @@ moduleFor(
}, expectedBacktrackingMessage);
});
}

['@test route templates with {{{undefined}}} [GH#14924] [GH#16172]']() {
this.router.map(function() {
this.route('first');
this.route('second');
});

this.addTemplate('first', 'first');
this.addTemplate('second', '{{{undefined}}}second');

return this.visit('/first')
.then(() => {
this.assertText('first');
return this.visit('/second');
})
.then(() => {
this.assertText('second');
return this.visit('/first');
})
.then(() => {
this.assertText('first');
});
}
}
);

0 comments on commit b5ab036

Please sign in to comment.