tests: Save the CHAT_MESSAGE payload, not the wrapper

This commit is contained in:
Richard Hansen 2021-10-28 17:38:25 -04:00
parent c8e0916e1a
commit 66a8c48fac
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ helper.spyOnSocketIO = () => {
} else if (msg.data.type === 'USER_NEWINFO') {
helper.userInfos.push(msg);
} else if (msg.data.type === 'CHAT_MESSAGE') {
helper.chatMessages.push(msg);
helper.chatMessages.push(msg.data);
}
});
};