(server)
| 84 | // Cannot pass start directly to mocha's before, as mocha will interpret the optional |
| 85 | // port parameter as an async callback parameter. |
| 86 | function mkStartFunc(server) { |
| 87 | return function () { |
| 88 | return server.start() |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | before(mkStartFunc(proxyServer)) |
| 93 | before(mkStartFunc(helloServer)) |