@@ -7,7 +7,7 @@ describe('parser', function() {
77 it ( 'encodes an ArrayBuffer' , function ( ) {
88 var packet = {
99 type : parser . BINARY_EVENT ,
10- data : new ArrayBuffer ( 2 ) ,
10+ data : [ 'a' , new ArrayBuffer ( 2 ) ] ,
1111 id : 0 ,
1212 nsp : '/'
1313 } ;
@@ -17,7 +17,7 @@ describe('parser', function() {
1717 it ( 'encodes ArrayBuffers deep in JSON' , function ( ) {
1818 var packet = {
1919 type : parser . BINARY_EVENT ,
20- data : { a : 'hi' , b : { why : new ArrayBuffer ( 3 ) } , c : { a : 'bye' , b : { a : new ArrayBuffer ( 6 ) } } } ,
20+ data : [ 'a' , { a : 'hi' , b : { why : new ArrayBuffer ( 3 ) } , c : { a : 'bye' , b : { a : new ArrayBuffer ( 6 ) } } } ] ,
2121 id : 999 ,
2222 nsp : '/deep'
2323 } ;
@@ -27,7 +27,7 @@ describe('parser', function() {
2727 it ( 'encodes deep binary JSON with null values' , function ( ) {
2828 var packet = {
2929 type : parser . BINARY_EVENT ,
30- data : { a : 'b' , c : 4 , e : { g : null } , h : new ArrayBuffer ( 9 ) } ,
30+ data : [ 'a' , { a : 'b' , c : 4 , e : { g : null } , h : new ArrayBuffer ( 9 ) } ] ,
3131 nsp : '/' ,
3232 id : 600
3333 } ;
0 commit comments