ray-template/__test__/vue/renderNode.spec.tsx
2024-04-13 15:24:51 +08:00

14 lines
365 B
TypeScript

import { renderNode } from '../../src/utils/vue/render-node'
import createRefElement from '../utils/createRefElement'
describe('renderNode', () => {
it('should render string', () => {
const wrapper = createRefElement({
default: renderNode('hello world') as Function,
})
const text = wrapper.text()
expect(text).toBe('hello world')
})
})