From deaf01c8e96446c97f31826b1d04ab4a4e757718 Mon Sep 17 00:00:00 2001 From: David Bindloss Date: Sat, 4 Nov 2017 04:01:19 +1100 Subject: [PATCH] docs: Feature/testing docs update (#2012) --- docs/testing.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/testing.md b/docs/testing.md index ba850a5b..ead11517 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -74,7 +74,9 @@ var m = require("mithril") module.exports = { view: function() { - return m("div", "Hello world") + return m("div", + m("p", "Hello World") + ) } } ``` @@ -90,7 +92,7 @@ o.spec("MyComponent", function() { o(vnode.tag).equals("div") o(vnode.children.length).equals(1) - o(vnode.children[0].tag).equals("#") + o(vnode.children[0].tag).equals("p") o(vnode.children[0].children).equals("Hello world") }) })