mirror of
https://github.com/demostf/demo.js
synced 2026-06-03 16:44:12 +02:00
adjust userMessage tests to new UserMessagePacket format
This commit is contained in:
parent
8ee53bf92e
commit
9f113cc643
2 changed files with 4 additions and 2 deletions
|
|
@ -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',
|
||||||
|
|
|
||||||
|
|
@ -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',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue