File tree Expand file tree Collapse file tree
packages/template/src/tags Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -203,11 +203,11 @@ it('whitespace control', async () => {
203203 expect ( await compile ( ' \t\r\n{{= x }}\r\n\t ' ) ) . toMatchInlineSnapshot (
204204 '""use strict";return(async()=>{let s="";s+=" \\n\\n";s+=e(c.x);s+="\\n\\n ";return s;})();"' ,
205205 )
206- expect ( await compile ( ' \t\r\n{{=- x -}}\r\n\t ' ) ) . toMatchInlineSnapshot (
207- ' ""use strict";return(async()=>{let s="";s+=" \\n\\n{{=- x -}}\\n\\n " ;return s;})();"' ,
206+ expect ( await compile ( ' \t\r\n{{-= x -}}\r\n\t ' ) ) . toMatchInlineSnapshot (
207+ ` ""use strict";return(async()=>{let s="";s+=e(c.x) ;return s;})();"` ,
208208 )
209- expect ( await compile ( ' \t\r\n{{=- x }}\r\n\t ' ) ) . toMatchInlineSnapshot (
210- ' ""use strict";return(async()=>{let s="";s+=" \\n\\n{{=- x }}\\n\\n ";return s;})();"' ,
209+ expect ( await compile ( ' \t\r\n{{-= x }}\r\n\t ' ) ) . toMatchInlineSnapshot (
210+ ` ""use strict";return(async()=>{let s="";s+=e(c.x);s+=" \\n\\n ";return s;})();"` ,
211211 )
212212 expect ( await compile ( ' \t\r\n{{= x -}}\r\n\t ' ) ) . toMatchInlineSnapshot (
213213 '""use strict";return(async()=>{let s="";s+=" \\n\\n";s+=e(c.x);return s;})();"' ,
You can’t perform that action at this time.
0 commit comments