From b5276d38ac1a27a7c734ffd90a6231b36b8f9e32 Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Fri, 21 Feb 2020 15:03:31 -0500 Subject: [PATCH] [BUGFIX beta] Fix linting issue with test. --- .../components/contextual-components-test.js | 51 ++++++++++--------- 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/packages/@ember/-internals/glimmer/tests/integration/components/contextual-components-test.js b/packages/@ember/-internals/glimmer/tests/integration/components/contextual-components-test.js index a705571e68c..8f31f59cd7c 100644 --- a/packages/@ember/-internals/glimmer/tests/integration/components/contextual-components-test.js +++ b/packages/@ember/-internals/glimmer/tests/integration/components/contextual-components-test.js @@ -1361,66 +1361,69 @@ moduleFor( this.assertStableRerender(); } - ['@test GH#18732 hasBlock works within a yielded curried component invoked within mustaches'](assert) { + ['@test GH#18732 hasBlock works within a yielded curried component invoked within mustaches']() { this.registerComponent('component-with-has-block', { ComponentClass: Component.extend(), - template: '
{{hasBlock}}
' + template: '
{{hasBlock}}
', }); - + this.registerComponent('yielding-component', { ComponentClass: Component.extend(), - template: '{{yield (component "component-with-has-block")}}' + template: '{{yield (component "component-with-has-block")}}', }); - + this.registerComponent('test-component', { ComponentClass: Component.extend(), - template: '{{#yielding-component as |componentWithHasBlock|}}{{componentWithHasBlock}}{{/yielding-component}}' + template: + '{{#yielding-component as |componentWithHasBlock|}}{{componentWithHasBlock}}{{/yielding-component}}', }); - + this.render('{{test-component}}'); - + this.assertText('false'); } - + ['@test GH#18732 has-block works within a yielded curried component invoked with angle bracket invocation (falsy)']() { this.registerComponent('component-with-has-block', { ComponentClass: Component.extend(), - template: '
{{hasBlock}}
' + template: '
{{hasBlock}}
', }); - + this.registerComponent('yielding-component', { ComponentClass: Component.extend(), - template: '{{yield (component "component-with-has-block")}}' + template: '{{yield (component "component-with-has-block")}}', }); - + this.registerComponent('test-component', { ComponentClass: Component.extend(), - template: '{{#yielding-component as |componentWithHasBlock|}}{{/yielding-component}}' + template: + '{{#yielding-component as |componentWithHasBlock|}}{{/yielding-component}}', }); - + this.render('{{test-component}}'); - + this.assertText('false'); } - + ['@test GH#18732 has-block works within a yielded curried component invoked with angle bracket invocation (truthy)']() { this.registerComponent('component-with-has-block', { ComponentClass: Component.extend(), - template: '
{{hasBlock}}
' + template: '
{{hasBlock}}
', }); - + this.registerComponent('yielding-component', { ComponentClass: Component.extend(), - template: '{{yield (component "component-with-has-block")}}' + template: '{{yield (component "component-with-has-block")}}', }); - + this.registerComponent('test-component', { ComponentClass: Component.extend(), - template: '{{#yielding-component as |componentWithHasBlock|}}{{/yielding-component}}' + template: + '{{#yielding-component as |componentWithHasBlock|}}{{/yielding-component}}', }); - + this.render('{{test-component}}'); - + this.assertText('true'); } }