summaryrefslogtreecommitdiff
path: root/jstests/core/and.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/and.js')
-rw-r--r--jstests/core/and.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/core/and.js b/jstests/core/and.js
index f05c289966f..ea2fec4554e 100644
--- a/jstests/core/and.js
+++ b/jstests/core/and.js
@@ -8,11 +8,11 @@ t.save( {a:'foo'} );
function check() {
// $and must be an array
- assert.throws( function() { t.find( {$and:4} ).toArray() } );
+ assert.throws( function() { t.find( {$and:4} ).toArray(); } );
// $and array must not be empty
- assert.throws( function() { t.find( {$and:[]} ).toArray() } );
+ assert.throws( function() { t.find( {$and:[]} ).toArray(); } );
// $and elements must be objects
- assert.throws( function() { t.find( {$and:[4]} ).toArray() } );
+ assert.throws( function() { t.find( {$and:[4]} ).toArray(); } );
// Check equality matching
assert.eq( 1, t.count( {$and:[{a:1}]} ) );