mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
13 lines
254 B
CoffeeScript
13 lines
254 B
CoffeeScript
sinon = require('sinon')
|
|
|
|
idCounter = 0
|
|
|
|
module.exports = class MockClient
|
|
constructor: () ->
|
|
@ol_context = {}
|
|
@join = sinon.stub()
|
|
@emit = sinon.stub()
|
|
@disconnect = sinon.stub()
|
|
@id = idCounter++
|
|
@publicId = idCounter++
|
|
disconnect: () ->
|