2020-06-23 13:30:03 -04:00
|
|
|
/* eslint-disable
|
|
|
|
no-unused-vars,
|
|
|
|
*/
|
|
|
|
// TODO: This file was created by bulk-decaffeinate.
|
|
|
|
// Fix any style issues and re-enable lint.
|
2020-06-23 13:30:16 -04:00
|
|
|
let MockClient
|
|
|
|
const sinon = require('sinon')
|
2014-11-14 10:30:18 -05:00
|
|
|
|
2020-06-23 13:30:16 -04:00
|
|
|
let idCounter = 0
|
2014-11-14 10:30:18 -05:00
|
|
|
|
2020-06-23 13:30:16 -04:00
|
|
|
module.exports = MockClient = class MockClient {
|
|
|
|
constructor() {
|
|
|
|
this.ol_context = {}
|
|
|
|
this.join = sinon.stub()
|
|
|
|
this.emit = sinon.stub()
|
|
|
|
this.disconnect = sinon.stub()
|
|
|
|
this.id = idCounter++
|
|
|
|
this.publicId = idCounter++
|
2020-07-13 05:42:50 -04:00
|
|
|
this.joinLeaveEpoch = 0
|
2020-06-23 13:30:16 -04:00
|
|
|
}
|
2020-06-23 13:30:03 -04:00
|
|
|
|
2020-06-23 13:30:16 -04:00
|
|
|
disconnect() {}
|
|
|
|
}
|