tests: Also spy on initially loaded chat messages
parent
66a8c48fac
commit
e471cb12e6
|
@ -13,6 +13,8 @@ helper.spyOnSocketIO = () => {
|
|||
helper.userInfos.push(msg);
|
||||
} else if (msg.data.type === 'CHAT_MESSAGE') {
|
||||
helper.chatMessages.push(msg.data);
|
||||
} else if (msg.data.type === 'CHAT_MESSAGES') {
|
||||
helper.chatMessages.push(...msg.data.messages);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue