import { getCompiledString } from './utils'
import { compile } from '../src'
describe('ssr: element', () => {
test('basic elements', () => {
expect(getCompiledString(`
`)).toMatchInlineSnapshot(
`"\`\`"`
)
expect(getCompiledString(``)).toMatchInlineSnapshot(
`"\`\`"`
)
})
test('nested elements', () => {
expect(
getCompiledString(`
`)
).toMatchInlineSnapshot(`"\`
\`"`)
})
test('void element', () => {
expect(getCompiledString(``)).toMatchInlineSnapshot(`"\`\`"`)
})
describe('children override', () => {
test('v-html', () => {
expect(getCompiledString(``)).toMatchInlineSnapshot(`
"\`\${
_ctx.foo
}
\`"
`)
})
test('v-text', () => {
expect(getCompiledString(``)).toMatchInlineSnapshot(`
"\`\${
_ssrInterpolate(_ctx.foo)
}
\`"
`)
})
test('