Added additional packet to payload decoding test.

This commit is contained in:
Guillermo Rauch
2011-05-15 19:20:03 -07:00
parent 968afd89a5
commit f63f72cdac

View File

@@ -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: '' }
]);
},