mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-05 04:06:37 +02:00
tests: Also spy on initially loaded chat messages
This commit is contained in:
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…
x
Reference in New Issue
Block a user