diff options
Diffstat (limited to 'jstests/core/fm2.js')
-rw-r--r-- | jstests/core/fm2.js | 7 |
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"); |