File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -297,10 +297,8 @@ describe('Full BSON', function () {
297297 const serialized_data = BSON . serialize ( doc ) ;
298298 const deserialized_data = BSON . deserialize ( serialized_data ) ;
299299
300- const bytesFromBSON = Array . from ( deserialized_data . floats . value ( true ) ) ;
301- const bytesFromJS = Array . from ( new Uint8Array ( floats . buffer ) ) ;
302- expect ( bytesFromJS ) . to . have . ordered . members ( bytesFromBSON ) ;
303- expect ( 12.34 ) . to . equal ( deserialized_data . floats . value ( true ) . readDoubleLE ( 0 ) ) ;
300+ expect ( deserialized_data ) . to . have . property ( 'floats' ) ;
301+ expect ( deserialized_data . floats ) . to . have . property ( '0' , 12.34 ) ;
304302 } ) ;
305303
306304 it ( 'Should Correctly fail due to attempting serialization of illegal key values' , function ( done ) {
You can’t perform that action at this time.
0 commit comments