mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
more subscription tests for create message
This commit is contained in:
parent
ea28f4afeb
commit
887f2c9362
@ -325,6 +325,18 @@ 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