I need to go to a specific router to test publish behavior, I'm using iron router package, Router.go('...'), but doesn't work in server side , it throw me an error:
//XXX this assumes no other routers on the parent stack which we should probably fix // 14
I20150220-18:47:00.749(-4)? router.dispatch(req.url, { // 15
I20150220-18:47:00.750(-4)? request: req, // 16
I20150220-18:47:00.750(-4)? response: res // 17
I20150220-18:47:00.750(-4)? }, next); // 18
I20150220-18:47:00.750(-4)? } has no method 'go'
I20150220-18:47:00.750(-4)? at packages/velocity:test-proxy/tests/mocha/server/publish/folders-publisher-tests.js:23:1
I20150220-18:47:00.750(-4)? at wrappedFunc (packages/mike:mocha/server.js:204:1)
I20150220-18:47:00.751(-4)? at runWithEnvironment (packages/mike:mocha/server.js:156:1)
My routers files are in lib, and I've already tried calling a method in my routers controller, but also doesn't work, does some one has a clue what it could be???? please
Aucun commentaire:
Enregistrer un commentaire