summaryrefslogtreecommitdiff
path: root/jstests/core/query1.js
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2015-07-23 18:57:46 -0400
committerDavid Storch <david.storch@10gen.com>2015-07-23 19:51:04 -0400
commitffdb57ed20b4c359aefb85c4a4d9a235b9ceab25 (patch)
treeca33ec001e4f46e483032e07213565a3e6bab1f6 /jstests/core/query1.js
parent455aa3de2fe23454b8acd2a6d4ae575f2bb1aa74 (diff)
downloadmongo-ffdb57ed20b4c359aefb85c4a4d9a235b9ceab25.tar.gz
SERVER-17544 remove $-prefixed find options from jstests and comments
Since the format for passing these options is different for the find command, these options should be specified using the DBQuery helpers.
Diffstat (limited to 'jstests/core/query1.js')
-rw-r--r--jstests/core/query1.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/core/query1.js b/jstests/core/query1.js
index 8fa402cda65..1f39380cbf5 100644
--- a/jstests/core/query1.js
+++ b/jstests/core/query1.js
@@ -19,8 +19,8 @@ t.find().forEach(
assert.eq( num , 3 , "num" )
assert.eq( total , 8 , "total" )
-assert.eq( 3 , t.find()._addSpecial( "$comment" , "this is a test" ).itcount() , "B1" )
-assert.eq( 3 , t.find()._addSpecial( "$comment" , "this is a test" ).count() , "B2" )
+assert.eq( 3 , t.find().comment("this is a test").itcount() , "B1" )
+assert.eq( 3 , t.find().comment("this is a test").count() , "B2" )
-assert.eq( 3 , t.find( { "$comment" : "yo ho ho" } ).itcount() , "C1" )
-assert.eq( 3 , t.find( { "$comment" : "this is a test" } ).count() , "C2" )
+assert.eq( 3 , t.find().comment("yo ho ho").itcount() , "C1" )
+assert.eq( 3 , t.find().comment("this is a test").count() , "C2" )