Removed error packet type.

This commit is contained in:
Guillermo Rauch
2012-01-16 09:41:51 -08:00
parent 50a7e384c3
commit cc14deb5ab
2 changed files with 1 additions and 7 deletions

View File

@@ -9,8 +9,7 @@ var packets = exports.packets = {
, ping: 2
, pong: 3
, message: 4
, error: 5
, upgrade: 6
, upgrade: 5
};
var packetslist = Object.keys(packets);

View File

@@ -62,11 +62,6 @@ describe('parser', function () {
.to.eql({ type: 'message', data: 'aaa' });
});
it('should encode an error packet', function () {
expect(decode(encode({ type: 'error', data: 'aaa' })))
.to.eql({ type: 'error', data: 'aaa' });
});
it('should encode an upgrade packet', function () {
expect(decode(encode({ type: 'upgrade' })))
.to.eql({ type: 'upgrade' });