vCloak.spec.ts 322 B

123456789101112
  1. import { createApp } from '@vue/runtime-dom'
  2. describe('vCloak', () => {
  3. test('should be removed after compile', () => {
  4. const root = document.createElement('div')
  5. root.setAttribute('v-cloak', '')
  6. createApp({
  7. render() {},
  8. }).mount(root)
  9. expect(root.hasAttribute('v-cloak')).toBe(false)
  10. })
  11. })