mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-25 16:00:59 +00:00
831d794bf4
Co-Authored-By: Jakob Ackermann <jakob.ackermann@overleaf.com>
23 lines
500 B
JavaScript
23 lines
500 B
JavaScript
/* eslint-disable
|
|
no-unused-vars,
|
|
*/
|
|
// TODO: This file was created by bulk-decaffeinate.
|
|
// Fix any style issues and re-enable lint.
|
|
let MockClient
|
|
const sinon = require('sinon')
|
|
|
|
let idCounter = 0
|
|
|
|
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++
|
|
this.joinLeaveEpoch = 0
|
|
}
|
|
|
|
disconnect() {}
|
|
}
|