    o(vnode.tag).equals(&quot;div&quot;)
        o(vnode.children.length).equals(1)
        o(vnode.children[0].tag).equals(&quot;#&quot;)
        o(vnode.children[0].children).equals(&quot;Hello world&quot;)
    })
})
</code></pre>
<p>Typically, you wouldn&#39;t test the structure of the vnode tree so granularly, and you would instead only test non-trivial, dynamic aspects of the view. A tool that can help making testing easier with deep vnode trees is <a href="https://github.com/StephanHoyer/mithril-query