@@ -68,7 +68,7 @@ describe("Template Rewriting", function() {
68
68
// TODO why is `f` class both static and dynamic?
69
69
assert . deepEqual ( minify ( print ( result . ast ) ) , minify ( `
70
70
<div class="b">
71
- <h1 class="e">Hello, <span class="f c {{-css-blocks-classnames 2 3 2 isThick 1 2 4 2 1 textStyle "bold" 1 0 "italic" 1 1 "g" 0 "f" 1 "d" 2}}">World</span>!</h1>
71
+ <h1 class="e">Hello, <span class="c f {{-css-blocks-classnames 2 3 2 isThick 1 2 4 2 1 textStyle "bold" 1 0 "italic" 1 1 "g" 0 "f" 1 "d" 2}}">World</span>!</h1>
72
72
</div>
73
73
` ) ) ;
74
74
assert . deepEqual ( minify ( result . css . toString ( ) ) , minify ( `
@@ -103,8 +103,8 @@ describe("Template Rewriting", function() {
103
103
let templatePath = fixture ( "styled-app/src/ui/components/with-block-aliases/template.hbs" ) ;
104
104
let result = await pipeline ( projectDir , analyzer , "with-block-aliases" , templatePath ) ;
105
105
assert . deepEqual ( minify ( print ( result . ast ) ) , minify ( `
106
- <div class="my-scope-alias b stylesheet__world">
107
- <h1 class="e my-header-alias">Hello, <span class="f c stylesheet__world stylesheet__world--thick {{-css-blocks-classnames 2 4 2 isThick 1 3 4 2 1 textStyle "bold" 1 0 "italic" 1 1 "g" 0 "f" 1 "my-alias-for-state" 2 "d" 3}}">World</span>!</h1>
106
+ <div class="b my-scope-alias stylesheet__world">
107
+ <h1 class="e my-header-alias">Hello, <span class="c f stylesheet__world stylesheet__world--thick {{-css-blocks-classnames 2 4 2 isThick 1 3 4 2 1 textStyle "bold" 1 0 "italic" 1 1 "g" 0 "f" 1 "my-alias-for-state" 2 "d" 3}}">World</span>!</h1>
108
108
</div>
109
109
` ) ) ;
110
110
} ) ;
@@ -116,7 +116,7 @@ describe("Template Rewriting", function() {
116
116
let result = await pipeline ( projectDir , analyzer , "page-layout" , templatePath ) ;
117
117
assert . deepEqual ( minify ( print ( result . ast ) ) , minify ( `
118
118
<div class="a {{-css-blocks-classnames 1 1 2 isLoading 1 0 "b" 0}}">
119
- <aside class="g h c d"> </aside>
119
+ <aside class="c d g h "> </aside>
120
120
<article class="i {{-css-blocks-classnames 1 2 0 isRecommended 1 1 1 0 "e" 0 "f" 1}}"> </article>
121
121
</div>
122
122
` ) ) ;
@@ -142,9 +142,9 @@ describe("Template Rewriting", function() {
142
142
143
143
// TODO why is `f` class both static and dynamic?
144
144
assert . deepEqual ( minify ( print ( result . ast ) ) , minify ( `
145
- <div class="i a ">
146
- {{link-to "Inline Form" "inline-form" class="j b "}}
147
- {{#link-to "block-form" class="j b m"}}Block Form{{/link-to}}
145
+ <div class="a i ">
146
+ {{link-to "Inline Form" "inline-form" class="b j "}}
147
+ {{#link-to "block-form" class="b j m"}}Block Form{{/link-to}}
148
148
149
149
{{link-to "Inline Form" "inline-form-active" class="c" activeClass="d"}}
150
150
{{#link-to "block-form-active" class="c" activeClass="d"}}Block Form{{/link-to}}
0 commit comments