import { compile } from '../src'
describe('ssr: v-model', () => {
test(' (text types)', () => {
expect(compile(``).code).toMatchInlineSnapshot(`
"const { _renderAttr } = require(\\"@vue/server-renderer\\")
return function ssrRender(_ctx, _push, _parent) {
_push(\`\`)
}"
`)
expect(compile(``).code)
.toMatchInlineSnapshot(`
"const { _renderAttr } = require(\\"@vue/server-renderer\\")
return function ssrRender(_ctx, _push, _parent) {
_push(\`\`)
}"
`)
})
test('', () => {
expect(compile(``).code)
.toMatchInlineSnapshot(`
"const { _looseEqual } = require(\\"@vue/server-renderer\\")
return function ssrRender(_ctx, _push, _parent) {
_push(\`\`)
}"
`)
})
test(' {
expect(compile(``).code)
.toMatchInlineSnapshot(`
"const { _looseContain } = require(\\"@vue/server-renderer\\")
return function ssrRender(_ctx, _push, _parent) {
_push(\`\`)
}"
`)
expect(compile(``).code)
.toMatchInlineSnapshot(`
"const { _looseContain } = require(\\"@vue/server-renderer\\")
return function ssrRender(_ctx, _push, _parent) {
_push(\`\`)
}"
`)
})
test('