Fix outbound user data request/response
This commit is contained in:
@@ -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).', () => {
|
||||
|
||||
Reference in New Issue
Block a user