mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
16 lines
330 B
JavaScript
16 lines
330 B
JavaScript
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++;
|
|
}
|
|
disconnect() {}
|
|
});
|