overleaf/services/real-time/test/unit/coffee
Jakob Ackermann 5f7841526f [misc] RoomManager: emitOnCompletion: properly handle Promise rejections
```
result = Promise.all([<Promise that rejects eventually>]) # rejection 1
result.then () -> RoomEvents.emit(eventName)              # rejection 2
result.catch (err) -> RoomEvents.emit(eventName, err)     # handle r1
```
As shown above, the second rejection remains unhandled. The fix is to
 chain the `.catch()` onto the `.then()` Promise.
2020-06-17 09:29:12 +01:00
..
helpers
AuthorizationManagerTests.coffee
ChannelManagerTests.coffee
ConnectedUsersManagerTests.coffee
DocumentUpdaterControllerTests.coffee
DocumentUpdaterManagerTests.coffee
DrainManagerTests.coffee
EventLoggerTests.coffee
RoomManagerTests.coffee [misc] RoomManager: emitOnCompletion: properly handle Promise rejections 2020-06-17 09:29:12 +01:00
SafeJsonParseTest.coffee
SessionSocketsTests.coffee [misc] vendor a patched session.socket.io middleware 2020-06-09 15:21:33 +01:00
WebApiManagerTests.coffee
WebsocketControllerTests.coffee Merge pull request #145 from overleaf/jpa-backport-140 2020-06-09 14:41:12 +02:00
WebsocketLoadBalancerTests.coffee