Failing test.

This commit is contained in:
Guillermo Rauch
2012-01-16 09:49:45 -08:00
parent cc14deb5ab
commit 141eaef7d3

View File

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