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

@ -16,4 +16,10 @@ o.spec("normalizeChildren", function() {
o(children[0].tag).equals("#")
o(children[0].children).equals("a")
})
o("normalizes `false` values into empty string text nodes", function() {
var children = Vnode.normalizeChildren([false])
o(children[0].tag).equals("#")
o(children[0].children).equals("")
})
})