diff --git a/api/tests/test-router.js b/api/tests/test-router.js index 5b7ddf3e..7eb05f8a 100644 --- a/api/tests/test-router.js +++ b/api/tests/test-router.js @@ -514,21 +514,24 @@ o.spec("route", function() { o("m.route.set(m.route.get()) re-runs the resolution logic (#1180)", function(done){ var onmatch = o.spy(function(resolve) {resolve()}) + var render = o.spy(function(){return m("div")}) $window.location.href = prefix + "/" route(root, '/', { "/":{ onmatch: onmatch, - render: function(){return m("div")} + render: render } }) o(onmatch.callCount).equals(1) + o(render.callCount).equals(1) route.set(route.get()) setTimeout(function() { o(onmatch.callCount).equals(2) + o(render.callCount).equals(2) done() }, FRAME_BUDGET)