remove unused ubscription test, fix subscription params in test

This commit is contained in:
Moriz Wahl 2023-07-17 20:37:52 +02:00
parent 1d8e1cf251
commit dfd7107714

View File

@ -144,7 +144,7 @@ describe('Message', () => {
})
expect(pubsubSpy).toBeCalledWith('ROOM_COUNT_UPDATED', {
roomCountUpdated: '1',
user: 'other-chatting-user',
userId: 'other-chatting-user',
})
})
@ -325,18 +325,6 @@ describe('Message', () => {
})
})
it('sends two subscriptions', () => {
expect(pubsubSpy).toBeCalledTimes(2)
expect(pubsubSpy).nthCalledWith(1, 'ROOM_COUNT_UPDATED', {
roomCountUpdated: '1',
user: 'chatting-user',
})
expect(pubsubSpy).nthCalledWith(2, 'ROOM_COUNT_UPDATED', {
roomCountUpdated: '1',
user: 'other-chatting-user',
})
})
it('returns the messages', async () => {
await expect(
query({