mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 21:57:22 +01:00
Added cache for user styles on chat (#9679)
* Added cache for user styles on chat * Added loading on new message and other minor checks * Added null checks * Updated chat tests * Added costume preference to chat * Removed single profile cacheing for new chat messages * Remove owned gear from cache * Updated stats to only use buffs
This commit is contained in:
@@ -71,11 +71,9 @@ describe('DELETE /groups/:groupId/chat/:chatId', () => {
|
||||
});
|
||||
|
||||
it('returns the update chat when previous message parameter is passed and the chat is updated', async () => {
|
||||
await expect(user.del(`/groups/${groupWithChat._id}/chat/${nextMessage.id}?previousMsg=${message.id}`))
|
||||
.eventually
|
||||
.is.an('array')
|
||||
.to.include(message)
|
||||
.to.be.lengthOf(1);
|
||||
let deleteResult = await user.del(`/groups/${groupWithChat._id}/chat/${nextMessage.id}?previousMsg=${message.id}`);
|
||||
|
||||
expect(deleteResult[0].id).to.eql(message.id);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user