ray-template/__test__/vue/renderNode.spec.tsx
2024-03-23 11:25:28 +08:00

14 lines
364 B
TypeScript

import { renderNode } from '../../src/utils/vue/renderNode'
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')
})
})