(manager, skipConnect)
| 497 | }); |
| 498 | |
| 499 | function establishEndpoint(manager, skipConnect) { |
| 500 | let callCount = fakes.Endpoint.callCount; |
| 501 | manager.getStream(); |
| 502 | |
| 503 | if(fakes.Endpoint.callCount !== callCount + 1) { |
| 504 | return null; |
| 505 | } |
| 506 | |
| 507 | let endpoint = fakes.Endpoint.lastCall.returnValue; |
| 508 | endpoint.availableStreamSlots = 0; |
| 509 | |
| 510 | if (!skipConnect) { |
| 511 | endpoint.emit("connect"); |
| 512 | } |
| 513 | return endpoint; |
| 514 | } |
| 515 | }); |
no outgoing calls
no test coverage detected
searching dependent graphs…