tests: Update tests for false -> "" behavior

This commit is contained in:
Pat Cavit 2017-01-05 23:07:47 -08:00
parent 6170573c29
commit 9f32267259
4 changed files with 20 additions and 8 deletions

View file

@ -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("")
})
})