From 926ed2d692fef47dde2faa56720b03a6fbd4b80c Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Tue, 21 Apr 2015 20:55:23 -0400 Subject: [PATCH] teardown #571 test properly --- tests/mithril-tests.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/mithril-tests.js b/tests/mithril-tests.js index 336747ea..196cc8a4 100644 --- a/tests/mithril-tests.js +++ b/tests/mithril-tests.js @@ -3774,8 +3774,11 @@ function testMithril(mock) { m.route("/b") mock.requestAnimationFrame.$resolve() + var result = !root.childNodes[0].childNodes[0].modified; + + m.mount(root, null) //teardown - return !root.childNodes[0].childNodes[0].modified; + return result }); //end m.route