@@ -273,9 +273,8 @@ var tests = testCase({
273273 'dbref' : new client . bson_serializer . DBRef ( 'namespace' , oid , 'integration_tests_' )
274274 }
275275
276- collection . insert ( motherOfAllDocuments , { safe :true } , function ( err , docs ) {
277-
278- collection . findOne ( function ( err , doc ) {
276+ collection . insert ( motherOfAllDocuments , { safe :true } , function ( err , docs ) {
277+ collection . findOne ( function ( err , doc ) {
279278 // Assert correct deserialization of the values
280279 test . equal ( motherOfAllDocuments . string , doc . string ) ;
281280 test . deepEqual ( motherOfAllDocuments . array , doc . array ) ;
@@ -286,15 +285,15 @@ var tests = testCase({
286285 test . equal ( date . getTime ( ) , doc . date . getTime ( ) ) ;
287286 test . equal ( motherOfAllDocuments . oid . toHexString ( ) , doc . oid . toHexString ( ) ) ;
288287 test . equal ( motherOfAllDocuments . binary . value ( ) , doc . binary . value ( ) ) ;
289-
288+
290289 test . equal ( motherOfAllDocuments . int , doc . int ) ;
291290 test . equal ( motherOfAllDocuments . long , doc . long ) ;
292291 test . equal ( motherOfAllDocuments . float , doc . float ) ;
293292 test . equal ( motherOfAllDocuments . regexp . toString ( ) , doc . regexp . toString ( ) ) ;
294293 test . equal ( motherOfAllDocuments . boolean , doc . boolean ) ;
295294 test . equal ( motherOfAllDocuments . where . code , doc . where . code ) ;
296295 test . equal ( motherOfAllDocuments . where . scope [ 'i' ] , doc . where . scope . i ) ;
297-
296+
298297 test . equal ( motherOfAllDocuments . dbref . namespace , doc . dbref . namespace ) ;
299298 test . equal ( motherOfAllDocuments . dbref . oid . toHexString ( ) , doc . dbref . oid . toHexString ( ) ) ;
300299 test . equal ( motherOfAllDocuments . dbref . db , doc . dbref . db ) ;
@@ -690,15 +689,15 @@ var tests = testCase({
690689
691690 'Should correctly insert object and retrieve it when containing array and IsoDate' : function ( test ) {
692691 var doc = {
693- "_id" : new client . bson_serializer . ObjectID ( "4e886e687ff7ef5e00000162" ) ,
694- "str" : "foreign" ,
695- "type" : 2 ,
696- "timestamp" : ISODate ( "2011-10-02T14:00:08.383Z" ) ,
697- "links" : [
698- "http://www.reddit.com/r/worldnews/comments/kybm0/uk_home_secretary_calls_for_the_scrapping_of_the/"
699- ]
692+ "_id" : new client . bson_serializer . ObjectID ( "4e886e687ff7ef5e00000162" ) ,
693+ "str" : "foreign" ,
694+ "type" : 2 ,
695+ "timestamp" : ISODate ( "2011-10-02T14:00:08.383Z" ) ,
696+ "links" : [
697+ "http://www.reddit.com/r/worldnews/comments/kybm0/uk_home_secretary_calls_for_the_scrapping_of_the/"
698+ ]
700699 }
701-
700+
702701 client . createCollection ( 'Should_correctly_insert_object_and_retrieve_it_when_containing_array_and_IsoDate' , function ( err , collection ) {
703702 collection . insert ( doc , { safe :true } , function ( err , result ) {
704703 test . ok ( err == null ) ;
@@ -711,19 +710,19 @@ var tests = testCase({
711710 } ) ;
712711 } ) ;
713712 } ,
714-
713+
715714 'Should correctly insert object with timestamps' : function ( test ) {
716715 var doc = {
717- "_id" : new client . bson_serializer . ObjectID ( "4e886e687ff7ef5e00000162" ) ,
718- "str" : "foreign" ,
719- "type" : 2 ,
720- "timestamp" : new client . bson_serializer . Timestamp ( 10000 ) ,
721- "links" : [
722- "http://www.reddit.com/r/worldnews/comments/kybm0/uk_home_secretary_calls_for_the_scrapping_of_the/"
723- ] ,
724- "timestamp2" : new client . bson_serializer . Timestamp ( 33333 ) ,
716+ "_id" : new client . bson_serializer . ObjectID ( "4e886e687ff7ef5e00000162" ) ,
717+ "str" : "foreign" ,
718+ "type" : 2 ,
719+ "timestamp" : new client . bson_serializer . Timestamp ( 10000 ) ,
720+ "links" : [
721+ "http://www.reddit.com/r/worldnews/comments/kybm0/uk_home_secretary_calls_for_the_scrapping_of_the/"
722+ ] ,
723+ "timestamp2" : new client . bson_serializer . Timestamp ( 33333 ) ,
725724 }
726-
725+
727726 client . createCollection ( 'Should_correctly_insert_object_with_timestamps' , function ( err , collection ) {
728727 collection . insert ( doc , { safe :true } , function ( err , result ) {
729728 test . ok ( err == null ) ;
0 commit comments