| 57 | // `sinon` matcher to match when the callback argument actually invokes the expected |
| 58 | // function |
| 59 | const wrapperFor = expected => sinon.match(actual => { |
| 60 | const req = uuid.v4(); |
| 61 | const res = uuid.v4(); |
| 62 | actual(req, res); |
| 63 | return expected.calledWith(req, res); |
| 64 | }); |
| 65 | |
| 66 | it('should start API server with default port if no listenOn is provided', async () => { |
| 67 | config.port = 8000; |