summaryrefslogtreecommitdiff
path: root/jstests/core/exists5.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/exists5.js
parenta025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff)
downloadmongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/core/exists5.js')
-rw-r--r--jstests/core/exists5.js44
1 files changed, 22 insertions, 22 deletions
diff --git a/jstests/core/exists5.js b/jstests/core/exists5.js
index a90a94f908f..2f4b1a9b8de 100644
--- a/jstests/core/exists5.js
+++ b/jstests/core/exists5.js
@@ -3,31 +3,31 @@
t = db.jstests_exists5;
t.drop();
-t.save( {a:1} );
-assert.eq( 1, t.count( {'a.b':{$exists:false}} ) );
-assert.eq( 1, t.count( {'a.b':{$not:{$exists:true}}} ) );
-assert.eq( 1, t.count( {'c.d':{$not:{$exists:true}}} ) );
-assert.eq( 0, t.count( {'a.b':{$exists:true}} ) );
-assert.eq( 0, t.count( {'a.b':{$not:{$exists:false}}} ) );
-assert.eq( 0, t.count( {'c.d':{$not:{$exists:false}}} ) );
+t.save({a: 1});
+assert.eq(1, t.count({'a.b': {$exists: false}}));
+assert.eq(1, t.count({'a.b': {$not: {$exists: true}}}));
+assert.eq(1, t.count({'c.d': {$not: {$exists: true}}}));
+assert.eq(0, t.count({'a.b': {$exists: true}}));
+assert.eq(0, t.count({'a.b': {$not: {$exists: false}}}));
+assert.eq(0, t.count({'c.d': {$not: {$exists: false}}}));
t.drop();
-t.save( {a:{b:1}} );
-assert.eq( 1, t.count( {'a.b':{$exists:true}} ) );
-assert.eq( 1, t.count( {'a.b':{$not:{$exists:false}}} ) );
-assert.eq( 0, t.count( {'a.b':{$exists:false}} ) );
-assert.eq( 0, t.count( {'a.b':{$not:{$exists:true}}} ) );
+t.save({a: {b: 1}});
+assert.eq(1, t.count({'a.b': {$exists: true}}));
+assert.eq(1, t.count({'a.b': {$not: {$exists: false}}}));
+assert.eq(0, t.count({'a.b': {$exists: false}}));
+assert.eq(0, t.count({'a.b': {$not: {$exists: true}}}));
t.drop();
-t.save( {a:[1]} );
-assert.eq( 1, t.count( {'a.b':{$exists:false}} ) );
-assert.eq( 1, t.count( {'a.b':{$not:{$exists:true}}} ) );
-assert.eq( 0, t.count( {'a.b':{$exists:true}} ) );
-assert.eq( 0, t.count( {'a.b':{$not:{$exists:false}}} ) );
+t.save({a: [1]});
+assert.eq(1, t.count({'a.b': {$exists: false}}));
+assert.eq(1, t.count({'a.b': {$not: {$exists: true}}}));
+assert.eq(0, t.count({'a.b': {$exists: true}}));
+assert.eq(0, t.count({'a.b': {$not: {$exists: false}}}));
t.drop();
-t.save( {a:[{b:1}]} );
-assert.eq( 1, t.count( {'a.b':{$exists:true}} ) );
-assert.eq( 1, t.count( {'a.b':{$not:{$exists:false}}} ) );
-assert.eq( 0, t.count( {'a.b':{$exists:false}} ) );
-assert.eq( 0, t.count( {'a.b':{$not:{$exists:true}}} ) );
+t.save({a: [{b: 1}]});
+assert.eq(1, t.count({'a.b': {$exists: true}}));
+assert.eq(1, t.count({'a.b': {$not: {$exists: false}}}));
+assert.eq(0, t.count({'a.b': {$exists: false}}));
+assert.eq(0, t.count({'a.b': {$not: {$exists: true}}}));