2019-12-11 22:26:14 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2022-05-11 12:43:44 +08:00
|
|
|
exports[`should not hoist srcset URLs in SSR mode 1`] = `
|
|
|
|
"import { resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode } from \\"vue\\"
|
|
|
|
import { ssrRenderAttr as _ssrRenderAttr, ssrRenderComponent as _ssrRenderComponent } from \\"vue/server-renderer\\"
|
|
|
|
import _imports_0 from './img/foo.svg'
|
|
|
|
import _imports_1 from './img/bar.svg'
|
|
|
|
|
|
|
|
|
|
|
|
export function ssrRender(_ctx, _push, _parent, _attrs) {
|
|
|
|
const _component_router_link = _resolveComponent(\\"router-link\\")
|
|
|
|
|
|
|
|
_push(\`<!--[--><picture><source\${
|
|
|
|
_ssrRenderAttr(\\"srcset\\", _imports_0)
|
|
|
|
}><img\${
|
|
|
|
_ssrRenderAttr(\\"src\\", _imports_0)
|
|
|
|
}></picture>\`)
|
|
|
|
_push(_ssrRenderComponent(_component_router_link, null, {
|
|
|
|
default: _withCtx((_, _push, _parent, _scopeId) => {
|
|
|
|
if (_push) {
|
|
|
|
_push(\`<picture\${
|
|
|
|
_scopeId
|
|
|
|
}><source\${
|
|
|
|
_ssrRenderAttr(\\"srcset\\", _imports_1)
|
|
|
|
}\${
|
|
|
|
_scopeId
|
|
|
|
}><img\${
|
|
|
|
_ssrRenderAttr(\\"src\\", _imports_1)
|
|
|
|
}\${
|
|
|
|
_scopeId
|
|
|
|
}></picture>\`)
|
|
|
|
} else {
|
|
|
|
return [
|
|
|
|
_createVNode(\\"picture\\", null, [
|
|
|
|
_createVNode(\\"source\\", {
|
|
|
|
srcset: _imports_1
|
|
|
|
}),
|
|
|
|
_createVNode(\\"img\\", { src: _imports_1 })
|
|
|
|
])
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}),
|
|
|
|
_: 1 /* STABLE */
|
|
|
|
}, _parent))
|
|
|
|
_push(\`<!--]-->\`)
|
|
|
|
}"
|
|
|
|
`;
|
|
|
|
|
2019-12-11 22:26:14 +08:00
|
|
|
exports[`source map 1`] = `
|
|
|
|
Object {
|
2021-06-23 07:15:20 +08:00
|
|
|
"mappings": ";;;wBACE,oBAA8B;IAAzB,oBAAmB,4BAAbA,WAAM",
|
2019-12-11 22:26:14 +08:00
|
|
|
"names": Array [
|
|
|
|
"render",
|
|
|
|
],
|
|
|
|
"sources": Array [
|
|
|
|
"example.vue",
|
|
|
|
],
|
|
|
|
"sourcesContent": Array [
|
|
|
|
"
|
|
|
|
<div><p>{{ render }}</p></div>
|
|
|
|
",
|
|
|
|
],
|
|
|
|
"version": 3,
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`template errors 1`] = `
|
|
|
|
Array [
|
2020-02-28 06:15:51 +08:00
|
|
|
[SyntaxError: Error parsing JavaScript expression: Unexpected token (1:3)],
|
2019-12-15 11:28:39 +08:00
|
|
|
[SyntaxError: v-bind is missing expression.],
|
|
|
|
[SyntaxError: v-model can only be used on <input>, <textarea> and <select> elements.],
|
2019-12-11 22:26:14 +08:00
|
|
|
]
|
|
|
|
`;
|