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

@@ -122,12 +122,12 @@ describe('ssr: v-if', () => {
expect(
compile(`<template v-if="foo"><div v-for="i in list"/></template>`).code
).toMatchInlineSnapshot(`
"const { _renderList } = require(\\"@vue/server-renderer\\")
"const { _ssrRenderList } = require(\\"@vue/server-renderer\\")
return function ssrRender(_ctx, _push, _parent) {
if (_ctx.foo) {
_push(\`<!---->\`)
_renderList(_ctx.list, (i) => {
_ssrRenderList(_ctx.list, (i) => {
_push(\`<div></div>\`)
})
_push(\`<!---->\`)