summaryrefslogtreecommitdiff
path: root/jstests/core/update_arraymatch6.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/update_arraymatch6.js
parenta025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff)
downloadmongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/core/update_arraymatch6.js')
-rw-r--r--jstests/core/update_arraymatch6.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/jstests/core/update_arraymatch6.js b/jstests/core/update_arraymatch6.js
index 71e443fa44f..fe4b09de8a0 100644
--- a/jstests/core/update_arraymatch6.js
+++ b/jstests/core/update_arraymatch6.js
@@ -3,13 +3,13 @@ t = db.jstests_update_arraymatch6;
t.drop();
function doTest() {
- t.save( {a: [{id: 1, x: [5,6,7]}, {id: 2, x: [8,9,10]}]} );
- res = t.update({'a.id': 1}, {$set: {'a.$.x': [1,1,1]}});
- assert.writeOK( res );
- assert.eq.automsg( "1", "t.findOne().a[ 0 ].x[ 0 ]" );
+ t.save({a: [{id: 1, x: [5, 6, 7]}, {id: 2, x: [8, 9, 10]}]});
+ res = t.update({'a.id': 1}, {$set: {'a.$.x': [1, 1, 1]}});
+ assert.writeOK(res);
+ assert.eq.automsg("1", "t.findOne().a[ 0 ].x[ 0 ]");
}
doTest();
t.drop();
-t.ensureIndex( { 'a.id':1 } );
+t.ensureIndex({'a.id': 1});
doTest(); \ No newline at end of file