Skip to content

Commit

Permalink
Add test addressing prettier#8584
Browse files Browse the repository at this point in the history
  • Loading branch information
mikoscz committed Jun 18, 2020
1 parent 4009ecf commit 411f706
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,30 @@ singleQuote: true
<div
class="a-first-class
{{if this.optionOne "optionOne"}}
{{if this.optionTwo "optionTwo"}}
{{if this.optionThree "optionThree"}}
{{if this.optionFour "optionFour"}}
{{if this.optionFive "optionFive"}}
{{this.class}}"
...attributes >
</div>
<div>
{{classic-component-with-many-properties
class="hello"
param=this.someValue
secondParam=this.someValue
thirdParam=this.someValue
}}
</div>
=====================================output=====================================
<GlimmerComponent
@progress={{
Expand Down Expand Up @@ -116,6 +127,15 @@ singleQuote: true
...attributes
>
</div>
<div>
{{classic-component-with-many-properties
class='hello'
param=this.someValue
secondParam=this.someValue
thirdParam=this.someValue
}}
</div>
================================================================================
`;
Expand Down Expand Up @@ -155,19 +175,30 @@ printWidth: 80
<div
class="a-first-class
{{if this.optionOne "optionOne"}}
{{if this.optionTwo "optionTwo"}}
{{if this.optionThree "optionThree"}}
{{if this.optionFour "optionFour"}}
{{if this.optionFive "optionFive"}}
{{this.class}}"
...attributes >
</div>
<div>
{{classic-component-with-many-properties
class="hello"
param=this.someValue
secondParam=this.someValue
thirdParam=this.someValue
}}
</div>
=====================================output=====================================
<GlimmerComponent
@progress={{
Expand Down Expand Up @@ -234,6 +265,15 @@ printWidth: 80
...attributes
>
</div>
<div>
{{classic-component-with-many-properties
class="hello"
param=this.someValue
secondParam=this.someValue
thirdParam=this.someValue
}}
</div>
================================================================================
`;
Expand Down
21 changes: 16 additions & 5 deletions tests/handlebars/mustache-statement/basics.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,26 @@
<div
class="a-first-class
{{if this.optionOne "optionOne"}}
{{if this.optionTwo "optionTwo"}}
{{if this.optionThree "optionThree"}}
{{if this.optionFour "optionFour"}}
{{if this.optionFive "optionFive"}}
{{this.class}}"
...attributes >
</div>

<div>
{{classic-component-with-many-properties
class="hello"
param=this.someValue
secondParam=this.someValue
thirdParam=this.someValue
}}
</div>


0 comments on commit 411f706

Please sign in to comment.