summaryrefslogtreecommitdiff
path: root/jstests/core/geo_multikey1.js
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:27:20 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:27:56 -0500
commit8c5ff5834ab1f61e68b7839cd99c3de1f87c2121 (patch)
treeef4d91cc230300a6a48eeeac696ca15df6db1212 /jstests/core/geo_multikey1.js
parent0875be78b405016736ff42e3a50166be7561c2f8 (diff)
downloadmongo-8c5ff5834ab1f61e68b7839cd99c3de1f87c2121.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/core/geo_multikey1.js')
-rw-r--r--jstests/core/geo_multikey1.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/jstests/core/geo_multikey1.js b/jstests/core/geo_multikey1.js
index 7bf5cfaafe1..9c092f4ec31 100644
--- a/jstests/core/geo_multikey1.js
+++ b/jstests/core/geo_multikey1.js
@@ -5,15 +5,14 @@ t.drop();
locArr = [];
arr = [];
-for( i = 0; i < 10; ++i ) {
- locArr.push( [i,i+1] );
- arr.push( i );
+for (i = 0; i < 10; ++i) {
+ locArr.push([i, i + 1]);
+ arr.push(i);
}
-t.save( {loc:locArr,a:arr,b:arr,c:arr} );
+t.save({loc: locArr, a: arr, b: arr, c: arr});
// Parallel arrays are allowed for geo indexes.
-assert.commandWorked(t.ensureIndex( {loc:'2d',a:1,b:1,c:1} ));
+assert.commandWorked(t.ensureIndex({loc: '2d', a: 1, b: 1, c: 1}));
// Parallel arrays are not allowed for normal indexes.
-assert.commandFailed(t.ensureIndex( {loc:1,a:1,b:1,c:1} ));
-
+assert.commandFailed(t.ensureIndex({loc: 1, a: 1, b: 1, c: 1}));