summaryrefslogtreecommitdiff
path: root/jstests/core/fm2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/fm2.js')
-rw-r--r--jstests/core/fm2.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/jstests/core/fm2.js b/jstests/core/fm2.js
index 93284c0c611..14fa8e06466 100644
--- a/jstests/core/fm2.js
+++ b/jstests/core/fm2.js
@@ -2,8 +2,7 @@
t = db.fm2;
t.drop();
-t.insert( { "one" : { "two" : {"three":"four"} } } );
-
-x = t.find({},{"one.two":1})[0];
-assert.eq( 1 , Object.keySet( x.one ).length , "ks l 1" );
+t.insert({"one": {"two": {"three": "four"}}});
+x = t.find({}, {"one.two": 1})[0];
+assert.eq(1, Object.keySet(x.one).length, "ks l 1");