mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
* [real-time] remove applied-ops pub/sub * [real-time] remove per-doc rooms GitOrigin-RevId: ec3b76b37a029df15bf20d6f2832fb7c089c0042
23 lines
465 B
JavaScript
23 lines
465 B
JavaScript
/* eslint-disable
|
|
no-unused-vars,
|
|
*/
|
|
// TODO: This file was created by bulk-decaffeinate.
|
|
// Fix any style issues and re-enable lint.
|
|
import sinon from 'sinon'
|
|
let MockClient
|
|
|
|
let idCounter = 0
|
|
|
|
export default 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++
|
|
}
|
|
|
|
disconnect() {}
|
|
}
|