test: update snapshots

This commit is contained in:
Evan You
2020-02-06 12:09:09 -05:00
parent bc8f91d181
commit ae8fc9297d
8 changed files with 114 additions and 114 deletions

View File

@@ -22,10 +22,10 @@ describe('ssr: text', () => {
test('interpolation', () => {
expect(compile(`foo {{ bar }} baz`).code).toMatchInlineSnapshot(`
"const { _interpolate } = require(\\"@vue/server-renderer\\")
"const { _ssrInterpolate } = require(\\"@vue/server-renderer\\")
return function ssrRender(_ctx, _push, _parent) {
_push(\`foo \${_interpolate(_ctx.bar)} baz\`)
_push(\`foo \${_ssrInterpolate(_ctx.bar)} baz\`)
}"
`)
})
@@ -35,13 +35,13 @@ describe('ssr: text', () => {
compile(`<div><span>{{ foo }} bar</span><span>baz {{ qux }}</span></div>`)
.code
).toMatchInlineSnapshot(`
"const { _interpolate } = require(\\"@vue/server-renderer\\")
"const { _ssrInterpolate } = require(\\"@vue/server-renderer\\")
return function ssrRender(_ctx, _push, _parent) {
_push(\`<div><span>\${
_interpolate(_ctx.foo)
_ssrInterpolate(_ctx.foo)
} bar</span><span>baz \${
_interpolate(_ctx.qux)
_ssrInterpolate(_ctx.qux)
}</span></div>\`)
}"
`)