我需要转到特定的路由器以测试发布行为,我使用的是铁路由器包Router.go('...'),但在服务器端不起作用,它给我抛出了一个错误:] >
//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)
我的路由器文件在lib中,我已经尝试在路由器控制器中调用一种方法,但也无法正常工作,有人知道这可能是什么吗????请
我需要转到特定的路由器以测试发布行为,我使用的是铁路由器包Router.go('...'),但在服务器端不起作用,它抛出了一个错误:/ / XXX,假设没有其他...
铁路由器是一个客户端/服务器库,可以通过客户端测试轻松进行测试。