diff --git a/index.js b/index.js index 6155ba71..6eb607f3 100644 --- a/index.js +++ b/index.js @@ -10,8 +10,8 @@ var Stream = require("./stream") requestService.setCompletionCallback(redrawService.publish) -m.route = require("./route") m.mount = require("./mount") +m.route = require("./route") m.withAttr = require("./util/withAttr") m.prop = Stream m.render = renderService.render diff --git a/tests/test-api.js b/tests/test-api.js index 4d57d5cc..3c91606e 100644 --- a/tests/test-api.js +++ b/tests/test-api.js @@ -164,9 +164,11 @@ o.spec("api", function() { setTimeout(function() { m.route.set("/b") - o(m.route.get()).equals("/b") + setTimeout(function() { + o(m.route.get()).equals("/b") - done() + done() + }, FRAME_BUDGET) }, FRAME_BUDGET) }) })