Skip to content

Commit b74fe45

Browse files
authored
Merge pull request #492 from GetStream/fix-intermittent-failure-webhook
Fix webhook
2 parents 3a6dd0f + c3c84f2 commit b74fe45

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/integration/webhook.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,14 @@ describe('Webhooks', function () {
189189
const tommaso = event.members.find((mem) => mem.user.id === tommasoID);
190190
expect(thierry).to.not.be.undefined;
191191
expect(tommaso).to.not.be.undefined;
192-
expect(thierry.unread_count).to.eq(1);
193-
expect(thierry.total_unread_count).to.eq(1);
194-
expect(thierry.unread_channels).to.eq(1);
195-
expect(thierry.online).to.eq(false);
192+
expect(thierry.user.unread_count).to.eq(1);
193+
expect(thierry.user.total_unread_count).to.eq(1);
194+
expect(thierry.user.unread_channels).to.eq(1);
195+
expect(thierry.user.online).to.eq(false);
196196
// tommaso gets the same count since he created the msg
197-
expect(tommaso.unread_count).to.eq(0);
198-
expect(tommaso.total_unread_count).to.eq(0);
199-
expect(tommaso.unread_channels).to.eq(0);
197+
expect(tommaso.user.unread_count).to.eq(0);
198+
expect(tommaso.user.total_unread_count).to.eq(0);
199+
expect(tommaso.user.unread_channels).to.eq(0);
200200
expect(tommaso.user.online).to.eq(false);
201201
});
202202

0 commit comments

Comments
 (0)