forked from mirrors/akkoma-fe
fix test
This commit is contained in:
parent
5e8db7ed93
commit
757706425a
1 changed files with 3 additions and 3 deletions
|
@ -47,10 +47,10 @@ describe('chatService', () => {
|
|||
|
||||
chatService.resetNewMessageCount(chat)
|
||||
expect(chat.newMessageCount).to.eql(0)
|
||||
expect(chat.lastSeenMessageId).to.eql(message2.id)
|
||||
|
||||
const createdAt = new Date()
|
||||
createdAt.setSeconds(createdAt.getSeconds() + 10)
|
||||
chatService.add(chat, { messages: [ { message3, created_at: createdAt } ] })
|
||||
// Add message with higher id
|
||||
chatService.add(chat, { messages: [ message3 ] })
|
||||
expect(chat.newMessageCount).to.eql(1)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue