mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
remove unused ubscription test, fix subscription params in test
This commit is contained in:
parent
1d8e1cf251
commit
dfd7107714
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user