diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2016-03-09 12:17:50 -0500 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2016-03-09 12:18:14 -0500 |
commit | 4ae691e8edc87d0e3cfb633bb91c328426be007b (patch) | |
tree | 52079a593f54382ca13a2e741633eab1b6271893 /jstests/core/eval8.js | |
parent | a025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff) | |
download | mongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz |
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/core/eval8.js')
-rw-r--r-- | jstests/core/eval8.js | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/jstests/core/eval8.js b/jstests/core/eval8.js index e2ec3db31a8..24f710f4b9f 100644 --- a/jstests/core/eval8.js +++ b/jstests/core/eval8.js @@ -2,18 +2,21 @@ t = db.eval8; t.drop(); -x = { a : 1 , b : 2 }; -t.save( x ); +x = { + a: 1, + b: 2 +}; +t.save(x); x = t.findOne(); -assert( x.a && x.b , "A" ); +assert(x.a && x.b, "A"); delete x.b; -assert( x.a && ! x.b , "B" ); +assert(x.a && !x.b, "B"); x.b = 3; -assert( x.a && x.b , "C" ); -assert.eq( 3 , x.b , "D" ); +assert(x.a && x.b, "C"); +assert.eq(3, x.b, "D"); -t.save( x ); +t.save(x); y = t.findOne(); -assert.eq( tojson( x ) , tojson( y ) , "E" ); +assert.eq(tojson(x), tojson(y), "E"); |