()
| 66 | } |
| 67 | |
| 68 | function getChannel(): MockChannel { |
| 69 | const channel = phoenix.sockets[0]?.channels[0]; |
| 70 | if (!channel) { |
| 71 | throw new Error("expected a phoenix channel to exist"); |
| 72 | } |
| 73 | return channel; |
| 74 | } |
| 75 | |
| 76 | function getFetchCall(fetchMock: Mock, index: number) { |
| 77 | const call = fetchMock.mock.calls[index]; |
no outgoing calls
no test coverage detected
searching dependent graphs…