Skip to content

Commit

Permalink
Add failing test for #14978
Browse files Browse the repository at this point in the history
(cherry picked from commit 793d123)
  • Loading branch information
chancancode committed Sep 25, 2018
1 parent a835354 commit 1140e27
Showing 1 changed file with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,42 @@ moduleFor(

this.assertContent('<b>Max</b><i>James</i>');
}

['@test empty content in trusted curlies [GH#14978]']() {
this.render('before {{{value}}} after', {
value: 'hello',
});

this.assertContent('before hello after');

this.runTask(() => this.rerender());

this.assertStableRerender();

this.runTask(() => set(this.context, 'value', undefined));

this.assertContent('before after');

this.runTask(() => set(this.context, 'value', 'hello'));

this.assertContent('before hello after');

this.runTask(() => set(this.context, 'value', null));

this.assertContent('before after');

this.runTask(() => set(this.context, 'value', 'hello'));

this.assertContent('before hello after');

this.runTask(() => set(this.context, 'value', ''));

this.assertContent('before after');

this.runTask(() => set(this.context, 'value', 'hello'));

this.assertContent('before hello after');
}
}
);

Expand Down

0 comments on commit 1140e27

Please sign in to comment.