提交 0b1ac38e 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test(uts android): 补充组件自闭合编译测试

上级 48783e4b
import { assert } from './testUtils'
describe('label self closing', () => {
test(`built-in`, () => {
assert(`<view />`, `createElementVNode(\"view\")`)
assert(
`<image src='./logo.png' />`,
`createElementVNode(\"image\", utsMapOf({ src: _imports_0 }))`
)
})
test(`vue`, () => {
assert(`<template />`, `createVNode(_component_template)`)
assert(
`<Teleport to = "#some-id" />`,
`createVNode(Teleport, utsMapOf({ to: \"#some-id\" }))`
)
})
})
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册