8000 add test for boolean attributes · vuejs/vue@1fb8d5c · GitHub
[go: up one dir, main page]

Skip to content

Commit 1fb8d5c

Browse files
committed
add test for boolean attributes
1 parent e9fcaa9 commit 1fb8d5c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/unit/specs/directives/public/bind_spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ describe('v-bind', function () {
2424
expect(el.hasAttribute('test')).toBe(false)
2525
dir.update(false)
2626
expect(el.hasAttribute('test')).toBe(false)
27+
dir.update(true)
28+
expect(el.getAttribute('test')).toBe('')
2729
dir.update(0)
2830
expect(el.getAttribute('test')).toBe('0')
2931
})

0 commit comments

Comments
 (0)
0