MCPcopy Index your code
hub / github.com/cameri/nostream / createMockSocket

Function createMockSocket

test/unit/tor/client.spec.ts:18–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16type MockSocket = EventEmitter & { write: Sinon.SinonStub; destroy: Sinon.SinonStub }
17
18function createMockSocket(): MockSocket {
19 return Object.assign(new EventEmitter(), {
20 write: Sinon.stub(),
21 destroy: Sinon.stub(),
22 })
23}
24
25describe('TorClient', () => {
26 let sandbox: Sinon.SinonSandbox

Callers 1

client.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected