summaryrefslogtreecommitdiff
path: root/jstests/core/id1.js
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:17:50 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:18:14 -0500
commit4ae691e8edc87d0e3cfb633bb91c328426be007b (patch)
tree52079a593f54382ca13a2e741633eab1b6271893 /jstests/core/id1.js
parenta025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff)
downloadmongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/core/id1.js')
-rw-r--r--jstests/core/id1.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/jstests/core/id1.js b/jstests/core/id1.js
index 7c40f206851..dedf9c449c5 100644
--- a/jstests/core/id1.js
+++ b/jstests/core/id1.js
@@ -2,15 +2,15 @@
t = db.id1;
t.drop();
-t.save( { _id : { a : 1 , b : 2 } , x : "a" } );
-t.save( { _id : { a : 1 , b : 2 } , x : "b" } );
-t.save( { _id : { a : 3 , b : 2 } , x : "c" } );
-t.save( { _id : { a : 4 , b : 2 } , x : "d" } );
-t.save( { _id : { a : 4 , b : 2 } , x : "e" } );
-t.save( { _id : { a : 2 , b : 2 } , x : "f" } );
+t.save({_id: {a: 1, b: 2}, x: "a"});
+t.save({_id: {a: 1, b: 2}, x: "b"});
+t.save({_id: {a: 3, b: 2}, x: "c"});
+t.save({_id: {a: 4, b: 2}, x: "d"});
+t.save({_id: {a: 4, b: 2}, x: "e"});
+t.save({_id: {a: 2, b: 2}, x: "f"});
-assert.eq( 4 , t.find().count() , "A" );
-assert.eq( "b" , t.findOne( { _id : { a : 1 , b : 2 } } ).x );
-assert.eq( "c" , t.findOne( { _id : { a : 3 , b : 2 } } ).x );
-assert.eq( "e" , t.findOne( { _id : { a : 4 , b : 2 } } ).x );
-assert.eq( "f" , t.findOne( { _id : { a : 2 , b : 2 } } ).x );
+assert.eq(4, t.find().count(), "A");
+assert.eq("b", t.findOne({_id: {a: 1, b: 2}}).x);
+assert.eq("c", t.findOne({_id: {a: 3, b: 2}}).x);
+assert.eq("e", t.findOne({_id: {a: 4, b: 2}}).x);
+assert.eq("f", t.findOne({_id: {a: 2, b: 2}}).x);