Browse Source

add test for boolean attributes

rhyzx 10 years ago
parent
commit
1fb8d5c27f
1 changed files with 2 additions and 0 deletions
  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')
   })