1
0
Fork 0
mirror of https://github.com/demostf/demo.js synced 2026-06-04 00:54:14 +02:00

adjust userMessage tests to new UserMessagePacket format

This commit is contained in:
Robin Appelman 2017-11-19 15:31:58 +01:00
commit 9f113cc643
2 changed files with 4 additions and 2 deletions

View file

@ -34,7 +34,8 @@ const data = [
24]; 24];
const expected = { const expected = {
packetType: 'textMsg', packetType: 'userMessage',
userMessageType: 'textMsg',
destType: HudTextLocation.HUD_PRINTNOTIFY, destType: HudTextLocation.HUD_PRINTNOTIFY,
text: '#Game_connected', text: '#Game_connected',
substitute1: 'sekr', substitute1: 'sekr',

View file

@ -63,7 +63,8 @@ const data = [
0, 0,
0]; 0];
const expected = { const expected = {
packetType: 'sayText2', packetType: 'userMessage',
userMessageType: 'sayText2',
client: 3, client: 3,
raw: 1, raw: 1,
kind: 'TF_Chat_Team_Dead', kind: 'TF_Chat_Team_Dead',