Fix outbound user data request/response

This commit is contained in:
Jack Hadrill
2022-03-18 22:31:50 +00:00
parent 0b19b83271
commit 3a163df991
5 changed files with 11 additions and 6 deletions

View File

@@ -23,10 +23,10 @@ test('Create a user data response (0x0003) packet.', () => {
// Then
// We can't check the contents of the data as it's encrypted with a random nonce.
// Check the message type and length.
expect(packedPacket.slice(0, 4)).toMatchObject(new Uint8Array([0x00, 0x03, 0x00, 0x3A]))
expect(packedPacket.slice(0, 4)).toMatchObject(new Uint8Array([0x00, 0x03, 0x00, 0x67]))
// Check the total length is as expected.
expect(packedPacket.length).toBe(62)
expect(packedPacket.length).toBe(107)
})
test('Parse a user data response (0x0003).', () => {