tests: Update tests for false -> "" behavior
This commit is contained in:
parent
6170573c29
commit
9f32267259
4 changed files with 20 additions and 8 deletions
|
|
@ -48,10 +48,10 @@ o.spec("normalize", function() {
|
|||
o(node.tag).equals("#")
|
||||
o(node.children).equals(true)
|
||||
})
|
||||
o("normalizes falsy boolean into text node", function() {
|
||||
o("normalizes falsy boolean into empty text node", function() {
|
||||
var node = Vnode.normalize(false)
|
||||
|
||||
o(node.tag).equals("#")
|
||||
o(node.children).equals(false)
|
||||
o(node.children).equals("")
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue