Skip to content

Commit

Permalink
update test to handle errors in args
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Oct 19, 2023
1 parent 49489e9 commit b560a74
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,17 @@ class DebugRenderTreeTest extends RenderTest {
@test 'emberish curly components'() {
this.registerComponent('Curly', 'HelloWorld', 'Hello World');

const obj = {
get getterWithError() {
throw new Error('error');
}
}

this.render(
`<HelloWorld @arg="first"/>{{#if this.showSecond}}<HelloWorld @arg="second"/>{{/if}}`,
`<HelloWorld @arg="first" @arg2={{this.obj.getterWithError}}/>{{#if this.showSecond}}<HelloWorld @arg="second"/>{{/if}}`,
{
showSecond: false,
obj,
}
);

Expand Down

0 comments on commit b560a74

Please sign in to comment.