vue3-yuanma/packages/runtime-dom/__tests__/directives/vCloak.spec.ts

13 lines
321 B
TypeScript
Raw Normal View History

import { createApp } from '@vue/runtime-dom'
describe('vCloak', () => {
test('should be removed after compile', () => {
const root = document.createElement('div')
root.setAttribute('v-cloak', '')
2020-04-02 09:39:37 +08:00
createApp({
render() {}
}).mount(root)
expect(root.hasAttribute('v-cloak')).toBe(false)
})
})