Skip to content

Commit 5b446c4

Browse files
authored
Merge pull request #13717 from fivetanley/unbound-test-fix
[glimmer2] fix unbound helper test
2 parents 48145b3 + ab927c4 commit 5b446c4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

packages/ember-glimmer/tests/utils/shared-conditional-tests.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -494,12 +494,11 @@ export class TogglingHelperConditionalsTest extends TogglingConditionalsTest {
494494
this.render(wrappedTemplate, context);
495495
}
496496

497-
['@htmlbars it does not update when the unbound helper is used']() {
498-
let template = `${
499-
this.wrappedTemplateFor({ cond: '(unbound cond1)', truthy: '"T1"', falsy: '"F1"' })
500-
}${
501-
this.wrappedTemplateFor({ cond: '(unbound cond2)', truthy: '"T2"', falsy: '"F2"' })
502-
}`;
497+
['@test it does not update when the unbound helper is used']() {
498+
let template = this.wrapperFor([
499+
this.templateFor({ cond: '(unbound cond1)', truthy: '"T1"', falsy: '"F1"' }),
500+
this.templateFor({ cond: '(unbound cond2)', truthy: '"T2"', falsy: '"F2"' })
501+
]);
503502

504503
this.render(template, { cond1: this.truthyValue, cond2: this.falsyValue });
505504

0 commit comments

Comments
 (0)