Kaynağa Gözat

add test for boolean attributes

rhyzx 10 yıl önce
ebeveyn
işleme
1fb8d5c27f

+ 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')
   })