From f63f72cdac830d25cc1255d66df72e51ec675295 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Sun, 15 May 2011 19:20:03 -0700 Subject: [PATCH] Added additional packet to payload decoding test. --- test/parser.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/parser.test.js b/test/parser.test.js index 143aa725..fff3ac44 100644 --- a/test/parser.test.js +++ b/test/parser.test.js @@ -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: '' } ]); },