Properties
connecting
connecting: boolean = false
destroy
destroy: Mock<any, any> = jest.fn().mockImplementation(() => {this.connecting = false;this.destroyed = true;this.readable = false;this.writable = false;this.emit('close');})
destroyed
destroyed: boolean = false
readable
readable: boolean = false
writable
writable: boolean = false
write
write: Mock<any, [any, any, any]> = jest.fn((data, encoding, callback) => callback())
Static defaultMaxListeners
defaultMaxListeners: number
since v4.0.0