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