overleaf/services/web/public/coffee/tests/unit/helpers.coffee

11 lines
226 B
CoffeeScript
Raw Normal View History

2014-02-12 10:23:40 +00:00
define [
"underscore"
"libs/backbone"
], () ->
class SocketIoMock
constructor: () ->
_.extend(SocketIoMock::, Backbone.Events)
SocketIoMock::emit = () -> @trigger.apply(@, arguments)
return SocketIoMock: SocketIoMock