Skip to content

Commit 1106bb9

Browse files
committed
chore: update express tests
1 parent 9390f8a commit 1106bb9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/template/src/tags/expression.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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;})();"',

0 commit comments

Comments
 (0)