mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
tests: Also spy on initially loaded chat messages
This commit is contained in:
parent
66a8c48fac
commit
e471cb12e6
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,8 @@ helper.spyOnSocketIO = () => {
|
||||||
helper.userInfos.push(msg);
|
helper.userInfos.push(msg);
|
||||||
} else if (msg.data.type === 'CHAT_MESSAGE') {
|
} else if (msg.data.type === 'CHAT_MESSAGE') {
|
||||||
helper.chatMessages.push(msg.data);
|
helper.chatMessages.push(msg.data);
|
||||||
|
} else if (msg.data.type === 'CHAT_MESSAGES') {
|
||||||
|
helper.chatMessages.push(...msg.data.messages);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue