Sfoglia il codice sorgente

add test for boolean attributes

rhyzx 10 anni fa
parent
commit
1fb8d5c27f
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      test/unit/specs/directives/public/bind_spec.js

+ 2 - 0
test/unit/specs/directives/public/bind_spec.js

@@ -24,6 +24,8 @@ describe('v-bind', function () {
     expect(el.hasAttribute('test')).toBe(false)
     dir.update(false)
     expect(el.hasAttribute('test')).toBe(false)
+    dir.update(true)
+    expect(el.getAttribute('test')).toBe('')
     dir.update(0)
     expect(el.getAttribute('test')).toBe('0')
   })