mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Added additional packet to payload decoding test.
This commit is contained in:
@@ -329,9 +329,11 @@ module.exports = {
|
||||
},
|
||||
|
||||
'test decoding a payload': function () {
|
||||
parser.decodePayload('\ufffd5\ufffd3:::5\ufffd7\ufffd3:::53d').should.eql([
|
||||
parser.decodePayload('\ufffd5\ufffd3:::5\ufffd7\ufffd3:::53d'
|
||||
+ '\ufffd3\ufffd0::').should.eql([
|
||||
{ type: 'message', data: '5', endpoint: '' }
|
||||
, { type: 'message', data: '53d', endpoint: '' }
|
||||
, { type: 'disconnect', endpoint: '' }
|
||||
]);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user