MockClient.js 493 B

1234567891011121314151617181920212223
  1. /* eslint-disable
  2. no-unused-vars,
  3. */
  4. // TODO: This file was created by bulk-decaffeinate.
  5. // Fix any style issues and re-enable lint.
  6. import sinon from 'sinon'
  7. let MockClient
  8. let idCounter = 0
  9. export default MockClient = class MockClient {
  10. constructor() {
  11. this.ol_context = {}
  12. this.join = sinon.stub()
  13. this.emit = sinon.stub()
  14. this.disconnect = sinon.stub()
  15. this.id = idCounter++
  16. this.publicId = idCounter++
  17. this.joinLeaveEpoch = 0
  18. }
  19. disconnect() {}
  20. }