Fix the bundle and bundle tests

This commit is contained in:
Pierre-Yves Gerardy 2016-09-03 23:28:17 +02:00
parent a1131eb4f2
commit 057f3a9d2f
2 changed files with 5 additions and 3 deletions

View file

@ -10,8 +10,8 @@ var Stream = require("./stream")
requestService.setCompletionCallback(redrawService.publish) requestService.setCompletionCallback(redrawService.publish)
m.route = require("./route")
m.mount = require("./mount") m.mount = require("./mount")
m.route = require("./route")
m.withAttr = require("./util/withAttr") m.withAttr = require("./util/withAttr")
m.prop = Stream m.prop = Stream
m.render = renderService.render m.render = renderService.render

View file

@ -164,10 +164,12 @@ o.spec("api", function() {
setTimeout(function() { setTimeout(function() {
m.route.set("/b") m.route.set("/b")
setTimeout(function() {
o(m.route.get()).equals("/b") o(m.route.get()).equals("/b")
done() done()
}, FRAME_BUDGET) }, FRAME_BUDGET)
}, FRAME_BUDGET)
}) })
}) })
o.spec("m.redraw", function() { o.spec("m.redraw", function() {