tests: Also spy on initially loaded chat messages

pull/5256/head
Richard Hansen 2021-10-28 17:40:02 -04:00
parent 66a8c48fac
commit e471cb12e6
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
});
};