diff options
Diffstat (limited to 'jstests/core/eval6.js')
-rw-r--r-- | jstests/core/eval6.js | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/jstests/core/eval6.js b/jstests/core/eval6.js index 5fe096974c6..31258f6917b 100644 --- a/jstests/core/eval6.js +++ b/jstests/core/eval6.js @@ -2,14 +2,12 @@ t = db.eval6; t.drop(); -t.save( { a : 1 } ); +t.save({a: 1}); -db.eval( - function(){ - o = db.eval6.findOne(); - o.b = 2; - db.eval6.save( o ); - } -); +db.eval(function() { + o = db.eval6.findOne(); + o.b = 2; + db.eval6.save(o); +}); -assert.eq( 2 , t.findOne().b ); +assert.eq(2, t.findOne().b); |