diff options
Diffstat (limited to 'jstests/core/server1470.js')
-rw-r--r-- | jstests/core/server1470.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/core/server1470.js b/jstests/core/server1470.js index 0bb4d02c933..3ab39bb3c38 100644 --- a/jstests/core/server1470.js +++ b/jstests/core/server1470.js @@ -4,10 +4,10 @@ t.drop(); q = { "name" : "first" , "pic" : { "$ref" : "foo", "$id" : ObjectId("4c48d04cd33a5a92628c9af6") } }; t.update( q , {$set:{ x : 1 } } , true, true ); -ref = t.findOne().pic +ref = t.findOne().pic; assert.eq( "object", typeof( ref ) ); -assert.eq( q.pic["$ref"] , ref["$ref"] ) -assert.eq( q.pic["$id"] , ref["$id"] ) +assert.eq( q.pic["$ref"] , ref["$ref"] ); +assert.eq( q.pic["$id"] , ref["$id"] ); // just make we haven't broken other update operators t.drop(); |