]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix snapshots
authorEvan You <yyx990803@gmail.com>
Sat, 15 Feb 2020 16:10:52 +0000 (11:10 -0500)
committerEvan You <yyx990803@gmail.com>
Sat, 15 Feb 2020 16:10:52 +0000 (11:10 -0500)
packages/compiler-ssr/__tests__/ssrVShow.spec.ts

index 87abd6a45a5517ad56fda1a09b2ce2f4bb8cd80d..2738bc2261780848dae6ef55e728de341923e02e 100644 (file)
@@ -6,7 +6,7 @@ describe('ssr: v-show', () => {
       "const { ssrRenderStyle: _ssrRenderStyle } = require(\\"@vue/server-renderer\\")
 
       return function ssrRender(_ctx, _push, _parent) {
-        _push(\`<div\${_ssrRenderStyle((_ctx.foo) ? null : { display: \\"none\\" })}></div>\`)
+        _push(\`<div style=\\"\${_ssrRenderStyle((_ctx.foo) ? null : { display: \\"none\\" })}\\"></div>\`)
       }"
     `)
   })
@@ -19,10 +19,10 @@ describe('ssr: v-show', () => {
       const _hoisted_1 = {\\"color\\":\\"red\\"}
 
       return function ssrRender(_ctx, _push, _parent) {
-        _push(\`<div\${_ssrRenderStyle([
+        _push(\`<div style=\\"\${_ssrRenderStyle([
           _hoisted_1,
           (_ctx.foo) ? null : { display: \\"none\\" }
-        ])}></div>\`)
+        ])}\\"></div>\`)
       }"
     `)
   })
@@ -33,10 +33,10 @@ describe('ssr: v-show', () => {
       "const { ssrRenderStyle: _ssrRenderStyle } = require(\\"@vue/server-renderer\\")
 
       return function ssrRender(_ctx, _push, _parent) {
-        _push(\`<div\${_ssrRenderStyle([
+        _push(\`<div style=\\"\${_ssrRenderStyle([
           { color: 'red' },
           (_ctx.foo) ? null : { display: \\"none\\" }
-        ])}></div>\`)
+        ])}\\"></div>\`)
       }"
     `)
   })
@@ -51,11 +51,11 @@ describe('ssr: v-show', () => {
       const _hoisted_1 = {\\"color\\":\\"red\\"}
 
       return function ssrRender(_ctx, _push, _parent) {
-        _push(\`<div\${_ssrRenderStyle([
+        _push(\`<div style=\\"\${_ssrRenderStyle([
           _hoisted_1,
           { fontSize: 14 },
           (_ctx.foo) ? null : { display: \\"none\\" }
-        ])}></div>\`)
+        ])}\\"></div>\`)
       }"
     `)
   })