import { compile } from '../src' describe('ssr: v-model', () => { test(' (text types)', () => { expect(compile(``).code).toMatchInlineSnapshot(` "const { ssrRenderAttr: _ssrRenderAttr } = require(\\"@vue/server-renderer\\") return function ssrRender(_ctx, _push, _parent) { _push(\`\`) }" `) expect(compile(``).code) .toMatchInlineSnapshot(` "const { ssrRenderAttr: _ssrRenderAttr } = require(\\"@vue/server-renderer\\") return function ssrRender(_ctx, _push, _parent) { _push(\`\`) }" `) }) test('', () => { expect(compile(``).code) .toMatchInlineSnapshot(` "const { ssrLooseEqual: _ssrLooseEqual } = require(\\"@vue/server-renderer\\") return function ssrRender(_ctx, _push, _parent) { _push(\`\`) }" `) }) test(' { expect(compile(``).code) .toMatchInlineSnapshot(` "const { ssrLooseContain: _ssrLooseContain } = require(\\"@vue/server-renderer\\") return function ssrRender(_ctx, _push, _parent) { _push(\`\`) }" `) expect(compile(``).code) .toMatchInlineSnapshot(` "const { ssrLooseContain: _ssrLooseContain } = require(\\"@vue/server-renderer\\") return function ssrRender(_ctx, _push, _parent) { _push(\`\`) }" `) }) test('`).code) .toMatchInlineSnapshot(` "const { ssrInterpolate: _ssrInterpolate } = require(\\"@vue/server-renderer\\") return function ssrRender(_ctx, _push, _parent) { _push(\`\`) }" `) }) test('', () => { expect(compile(``).code) .toMatchInlineSnapshot(` "const { ssrRenderAttr: _ssrRenderAttr, ssrRenderDynamicModel: _ssrRenderDynamicModel } = require(\\"@vue/server-renderer\\") return function ssrRender(_ctx, _push, _parent) { _push(\`\`) }" `) expect(compile(``).code) .toMatchInlineSnapshot(` "const { ssrRenderAttr: _ssrRenderAttr, ssrRenderDynamicModel: _ssrRenderDynamicModel } = require(\\"@vue/server-renderer\\") return function ssrRender(_ctx, _push, _parent) { _push(\`\`) }" `) expect(compile(``).code) .toMatchInlineSnapshot(` "const { ssrRenderAttr: _ssrRenderAttr, ssrRenderDynamicModel: _ssrRenderDynamicModel } = require(\\"@vue/server-renderer\\") return function ssrRender(_ctx, _push, _parent) { _push(\`\`) }" `) }) test('', () => { expect(compile(``).code) .toMatchInlineSnapshot(` "const { mergeProps: _mergeProps } = require(\\"vue\\") const { ssrRenderAttrs: _ssrRenderAttrs, ssrGetDynamicModelProps: _ssrGetDynamicModelProps } = require(\\"@vue/server-renderer\\") return function ssrRender(_ctx, _push, _parent) { let _temp0 _push(\`\`) }" `) expect(compile(``).code) .toMatchInlineSnapshot(` "const { mergeProps: _mergeProps } = require(\\"vue\\") const { ssrRenderAttrs: _ssrRenderAttrs, ssrGetDynamicModelProps: _ssrGetDynamicModelProps } = require(\\"@vue/server-renderer\\") return function ssrRender(_ctx, _push, _parent) { let _temp0 _push(\`\`) }" `) }) })