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 [misc] socket.io: use a secondary publicId for public facing usages 2020-06-04 17:18:07 +01:00
AuthorizationManagerTests.coffee [misc] test/unit: fix typos and assertion of error messages 2020-05-15 14:46:05 +02:00
ChannelManagerTests.coffee [misc] downgrade logging when running tests 2020-06-05 11:38:09 +01:00
ConnectedUsersManagerTests.coffee minimal fix for undefined connected users 2019-08-16 10:07:30 +01:00
DocumentUpdaterControllerTests.coffee [misc] socket.io: use a secondary publicId for public facing usages 2020-06-04 17:18:07 +01:00
DocumentUpdaterManagerTests.coffee add metric for pendingUpdates queue 2020-04-07 11:53:54 +01:00
DrainManagerTests.coffee fix unit tests 2019-08-13 17:26:49 +01:00
EventLoggerTests.coffee fix unit tests 2019-04-11 15:07:42 +01:00
RoomManagerTests.coffee [misc] RoomManager: emitOnCompletion: properly handle Promise rejections 2020-06-17 09:29:12 +01:00
SafeJsonParseTest.coffee [misc] SafeJsonParse: align the size limit with the frontend->rt limit 2020-03-24 09:14:15 +01:00
SessionSocketsTests.coffee [misc] vendor a patched session.socket.io middleware 2020-06-09 15:21:33 +01:00
WebApiManagerTests.coffee [misc] test/unit: fix typos and assertion of error messages 2020-05-15 14:46:05 +02:00
WebsocketControllerTests.coffee Merge pull request #145 from overleaf/jpa-backport-140 2020-06-09 14:41:12 +02:00
WebsocketLoadBalancerTests.coffee Revert "Revert "Track the isRestrictedUser flag on clients"" 2019-10-30 13:52:36 +00:00