@@ -47,7 +47,7 @@ exports.shouldCorrectlyPerformSimpleFind = {
47
47
* Test a simple find chained
48
48
* @ignore
49
49
*/
50
- exports . shouldCorrectlyPeformSimpleChainedFind = {
50
+ exports . shouldCorrectlyPerformSimpleChainedFind = {
51
51
metadata : { requires : { topology : [ 'single' , 'replicaset' , 'sharded' , 'ssl' , 'heap' , 'wiredtiger' ] } } ,
52
52
53
53
// The actual test we wish to run
@@ -92,7 +92,7 @@ exports.shouldCorrectlyPeformSimpleChainedFind = {
92
92
* Test advanced find
93
93
* @ignore
94
94
*/
95
- exports . shouldCorrectlyPeformAdvancedFinds = {
95
+ exports . shouldCorrectlyPerformAdvancedFinds = {
96
96
metadata : { requires : { topology : [ 'single' , 'replicaset' , 'sharded' , 'ssl' , 'heap' , 'wiredtiger' ] } } ,
97
97
98
98
// The actual test we wish to run
@@ -1563,7 +1563,7 @@ exports.shouldReturnInstanceofErrorWithBadFieldSelection = {
1563
1563
/**
1564
1564
* A simple query using find and fields
1565
1565
*/
1566
- exports . shouldPeformASimpleLimitSkipFindWithFields = {
1566
+ exports . shouldPerformASimpleLimitSkipFindWithFields = {
1567
1567
metadata : { requires : { topology : [ 'single' , 'replicaset' , 'sharded' , 'ssl' , 'heap' , 'wiredtiger' ] } } ,
1568
1568
1569
1569
// The actual test we wish to run
@@ -1581,14 +1581,14 @@ exports.shouldPeformASimpleLimitSkipFindWithFields = {
1581
1581
collection . insert ( [ { a :1 , b :1 } , { a :2 , b :2 } , { a :3 , b :3 } ] , configuration . writeConcernMax ( ) , function ( err , result ) {
1582
1582
test . equal ( null , err ) ;
1583
1583
1584
- // Peform a simple find and return all the documents
1584
+ // Perform a simple find and return all the documents
1585
1585
collection . find ( { a :2 } , [ 'b' ] ) . toArray ( function ( err , docs ) {
1586
1586
test . equal ( null , err ) ;
1587
1587
test . equal ( 1 , docs . length ) ;
1588
1588
test . equal ( null , docs [ 0 ] . a ) ;
1589
1589
test . equal ( 2 , docs [ 0 ] . b ) ;
1590
1590
1591
- // Peform a simple find and return all the documents
1591
+ // Perform a simple find and return all the documents
1592
1592
collection . find ( { a :2 } , { b :1 } ) . toArray ( function ( err , docs ) {
1593
1593
test . equal ( null , err ) ;
1594
1594
test . equal ( 1 , docs . length ) ;
@@ -1608,7 +1608,7 @@ exports.shouldPeformASimpleLimitSkipFindWithFields = {
1608
1608
/**
1609
1609
* A simple query using find and fields
1610
1610
*/
1611
- exports . shouldPeformASimpleLimitSkipFindWithFields2 = {
1611
+ exports . shouldPerformASimpleLimitSkipFindWithFields2 = {
1612
1612
metadata : { requires : { topology : [ 'single' , 'replicaset' , 'sharded' , 'ssl' , 'heap' , 'wiredtiger' ] } } ,
1613
1613
1614
1614
// The actual test we wish to run
@@ -1626,7 +1626,7 @@ exports.shouldPeformASimpleLimitSkipFindWithFields2 = {
1626
1626
collection . insert ( [ { a :1 , b :1 } , { a :2 , b :2 } , { a :3 , b :3 } ] , configuration . writeConcernMax ( ) , function ( err , result ) {
1627
1627
test . equal ( null , err ) ;
1628
1628
1629
- // Peform a simple find and return all the documents
1629
+ // Perform a simple find and return all the documents
1630
1630
collection . find ( { a :2 } , { fields : [ 'b' ] } ) . toArray ( function ( err , docs ) {
1631
1631
test . equal ( null , err ) ;
1632
1632
test . equal ( 1 , docs . length ) ;
@@ -1668,7 +1668,7 @@ exports.shouldPerformQueryWithBatchSizeDifferentToStandard = {
1668
1668
collection . insert ( docs , configuration . writeConcernMax ( ) , function ( err , result ) {
1669
1669
test . equal ( null , err ) ;
1670
1670
1671
- // Peform a simple find and return all the documents
1671
+ // Perform a simple find and return all the documents
1672
1672
collection . find ( { } , { batchSize :1000 } ) . toArray ( function ( err , docs ) {
1673
1673
test . equal ( null , err ) ;
1674
1674
test . equal ( 1000 , docs . length ) ;
@@ -1704,7 +1704,7 @@ exports.shouldCorrectlyPerformNegativeLimit = {
1704
1704
1705
1705
// Insert a bunch of documents
1706
1706
collection . insert ( docs , configuration . writeConcernMax ( ) , function ( err , result ) {
1707
- // Peform a simple find and return all the documents
1707
+ // Perform a simple find and return all the documents
1708
1708
collection . find ( { } ) . limit ( - 10 ) . toArray ( function ( err , docs ) {
1709
1709
test . equal ( null , err ) ;
1710
1710
test . equal ( 10 , docs . length ) ;
@@ -1761,7 +1761,7 @@ exports.shouldCorrectlyExecuteExhaustQuery = {
1761
1761
collection . insert ( docs2 , configuration . writeConcernMax ( ) , function ( err , result ) {
1762
1762
test . equal ( null , err ) ;
1763
1763
1764
- // Peform a simple find and return all the documents
1764
+ // Perform a simple find and return all the documents
1765
1765
collection . find ( { } , { exhaust :true } ) . toArray ( function ( err , docs3 ) {
1766
1766
test . equal ( null , err ) ;
1767
1767
test . equal ( docs1 . length + docs2 . length , docs3 . length )
@@ -1800,7 +1800,7 @@ exports['Readpreferences should work fine when using a single server instance']
1800
1800
db . collection ( 'Readpreferencesshouldworkfine' , function ( err , collection ) {
1801
1801
// Insert a bunch of documents
1802
1802
collection . insert ( docs , configuration . writeConcernMax ( ) , function ( err , result ) {
1803
- // Peform a simple find and return all the documents
1803
+ // Perform a simple find and return all the documents
1804
1804
collection . find ( { } , { exhaust :true } ) . toArray ( function ( err , docs2 ) {
1805
1805
test . equal ( null , err ) ;
1806
1806
test . equal ( docs . length , docs2 . length )
@@ -1827,7 +1827,7 @@ exports['Each should not hang on iterating over no results'] = {
1827
1827
test . equal ( null , err ) ;
1828
1828
// Create a collection we want to drop later
1829
1829
db . collection ( 'noresultAvailableForEachToIterate' , function ( err , collection ) {
1830
- // Peform a simple find and return all the documents
1830
+ // Perform a simple find and return all the documents
1831
1831
collection . find ( { } ) . each ( function ( err , item ) {
1832
1832
test . equal ( null , item ) ;
1833
1833
0 commit comments