add regression test

This commit is contained in:
Leo Horie 2015-04-18 09:17:48 -04:00
parent ec8e42a923
commit b847ca1067

View file

@ -1904,6 +1904,12 @@ function testMithril(mock) {
m.render(root, vdom)
return root.childNodes[0].class == "a"
})
test(function() {
var root = mock.document.createElement("div")
m.render(root, m(".a", [1]))
m.render(root, m(".a", []))
return root.childNodes[0].childNodes.length == 0
})
//end m.render
//m.redraw