Evan You преди 10 години
родител
ревизия
34b37a62ec
променени са 1 файла, в които са добавени 10 реда и са изтрити 0 реда
  1. 10 0
      test/unit/features/directives/cloak.spec.js

+ 10 - 0
test/unit/features/directives/cloak.spec.js

@@ -0,0 +1,10 @@
+import Vue from 'vue'
+
+describe('Directive v-cloak', () => {
+  it('should be removed after compile', () => {
+    const el = document.createElement('div')
+    el.setAttribute('v-cloak', '')
+    const vm = new Vue({ el })
+    expect(vm.$el.hasAttribute('v-cloak')).toBe(false)
+  })
+})