mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Made the parser tests a little more realistic.
This commit is contained in:
@@ -38,13 +38,13 @@ describe('parser', function () {
|
||||
});
|
||||
|
||||
it('should encode an open packet', function () {
|
||||
expect(decode(encode({ type: 'open', data: '1' })))
|
||||
.to.eql({ type: 'open', data: '1' });
|
||||
expect(decode(encode({ type: 'open', data: '{"some":"json"}' })))
|
||||
.to.eql({ type: 'open', data: '{"some":"json"}' });
|
||||
});
|
||||
|
||||
it('should encode a close packet', function () {
|
||||
expect(decode(encode({ type: 'close', data: '1' })))
|
||||
.to.eql({ type: 'close', data: '1' });
|
||||
expect(decode(encode({ type: 'close' })))
|
||||
.to.eql({ type: 'close' });
|
||||
});
|
||||
|
||||
it('should encode a ping packet', function () {
|
||||
|
||||
Reference in New Issue
Block a user