Tests use hyperscript instead of manually constructing nodes
This commit is contained in:
parent
5502570b16
commit
31d2ed4be8
27 changed files with 1515 additions and 1841 deletions
|
|
@ -14,8 +14,8 @@ function runTest(name, fragment) {
|
|||
o.spec(name, function() {
|
||||
o("works", function() {
|
||||
var attrs = {foo: 5}
|
||||
var child = {tag: "p"}
|
||||
var frag = fragment(attrs, [child])
|
||||
var child = m("p")
|
||||
var frag = fragment(attrs, child)
|
||||
|
||||
o(frag.tag).equals("[")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue