File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -189,14 +189,14 @@ describe('Webhooks', function () {
189
189
const tommaso = event . members . find ( ( mem ) => mem . user . id === tommasoID ) ;
190
190
expect ( thierry ) . to . not . be . undefined ;
191
191
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 ) ;
196
196
// 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 ) ;
200
200
expect ( tommaso . user . online ) . to . eq ( false ) ;
201
201
} ) ;
202
202
You can’t perform that action at this time.
0 commit comments