summaryrefslogtreecommitdiff
path: root/jstests/core/sort9.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/sort9.js
parenta025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff)
downloadmongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/core/sort9.js')
-rw-r--r--jstests/core/sort9.js34
1 files changed, 17 insertions, 17 deletions
diff --git a/jstests/core/sort9.js b/jstests/core/sort9.js
index 62407d6e96d..57496b40da1 100644
--- a/jstests/core/sort9.js
+++ b/jstests/core/sort9.js
@@ -3,24 +3,24 @@
t = db.jstests_sort9;
t.drop();
-t.save( {a:[]} );
-t.save( {a:[[]]} );
-assert.eq( 2, t.find( {a:{$ne:4}} ).sort( {a:1} ).itcount() );
-assert.eq( 2, t.find( {'a.b':{$ne:4}} ).sort( {'a.b':1} ).itcount() );
-assert.eq( 2, t.find( {a:{$ne:4}} ).sort( {'a.b':1} ).itcount() );
+t.save({a: []});
+t.save({a: [[]]});
+assert.eq(2, t.find({a: {$ne: 4}}).sort({a: 1}).itcount());
+assert.eq(2, t.find({'a.b': {$ne: 4}}).sort({'a.b': 1}).itcount());
+assert.eq(2, t.find({a: {$ne: 4}}).sort({'a.b': 1}).itcount());
t.drop();
-t.save( {} );
-assert.eq( 1, t.find( {a:{$ne:4}} ).sort( {a:1} ).itcount() );
-assert.eq( 1, t.find( {'a.b':{$ne:4}} ).sort( {'a.b':1} ).itcount() );
-assert.eq( 1, t.find( {a:{$ne:4}} ).sort( {'a.b':1} ).itcount() );
-assert.eq( 1, t.find( {a:{$exists:0}} ).sort( {a:1} ).itcount() );
-assert.eq( 1, t.find( {a:{$exists:0}} ).sort( {'a.b':1} ).itcount() );
+t.save({});
+assert.eq(1, t.find({a: {$ne: 4}}).sort({a: 1}).itcount());
+assert.eq(1, t.find({'a.b': {$ne: 4}}).sort({'a.b': 1}).itcount());
+assert.eq(1, t.find({a: {$ne: 4}}).sort({'a.b': 1}).itcount());
+assert.eq(1, t.find({a: {$exists: 0}}).sort({a: 1}).itcount());
+assert.eq(1, t.find({a: {$exists: 0}}).sort({'a.b': 1}).itcount());
t.drop();
-t.save( {a:{}} );
-assert.eq( 1, t.find( {a:{$ne:4}} ).sort( {a:1} ).itcount() );
-assert.eq( 1, t.find( {'a.b':{$ne:4}} ).sort( {'a.b':1} ).itcount() );
-assert.eq( 1, t.find( {a:{$ne:4}} ).sort( {'a.b':1} ).itcount() );
-assert.eq( 1, t.find( {'a.b':{$exists:0}} ).sort( {a:1} ).itcount() );
-assert.eq( 1, t.find( {'a.b':{$exists:0}} ).sort( {'a.b':1} ).itcount() );
+t.save({a: {}});
+assert.eq(1, t.find({a: {$ne: 4}}).sort({a: 1}).itcount());
+assert.eq(1, t.find({'a.b': {$ne: 4}}).sort({'a.b': 1}).itcount());
+assert.eq(1, t.find({a: {$ne: 4}}).sort({'a.b': 1}).itcount());
+assert.eq(1, t.find({'a.b': {$exists: 0}}).sort({a: 1}).itcount());
+assert.eq(1, t.find({'a.b': {$exists: 0}}).sort({'a.b': 1}).itcount());