From 4ae691e8edc87d0e3cfb633bb91c328426be007b Mon Sep 17 00:00:00 2001 From: Jonathan Abrahams Date: Wed, 9 Mar 2016 12:17:50 -0500 Subject: SERVER-22468 Format JS code with approved style in jstests/ --- jstests/core/eval8.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'jstests/core/eval8.js') 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"); -- cgit v1.2.1