mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Failing test.
This commit is contained in:
@@ -62,6 +62,11 @@ describe('parser', function () {
|
||||
.to.eql({ type: 'message', data: 'aaa' });
|
||||
});
|
||||
|
||||
it('should encode a message packet coercing to string', function () {
|
||||
expect(decode(encode({ type: 'message', data: 1 })))
|
||||
.to.eql({ type: 'message', data: '1' });
|
||||
});
|
||||
|
||||
it('should encode an upgrade packet', function () {
|
||||
expect(decode(encode({ type: 'upgrade' })))
|
||||
.to.eql({ type: 'upgrade' });
|
||||
|
||||
Reference in New Issue
Block a user