Skip to content

Commit 5fbc4db

Browse files
authored
Merge pull request #1468 from miwst/2.2
Corrects spelling in unit tests and examples
2 parents d22e3ef + d072716 commit 5fbc4db

11 files changed

+107
-107
lines changed

test/benchmarks/parallel_ldjson_export_child.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = function(o, callback) {
1818
var totalDocs = 0;
1919

2020
// console.dir({$gte: {_i: skip}, $lte: {_i: end}})
21-
// Peform the query
21+
// Perform the query
2222
collection.find({_i : {$gte: skip, $lte: end}}).each(function(err, doc) {
2323
if(doc == null) return callback();
2424
docs.push(doc);

test/functional/collection_tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ exports.shouldCorrectlySaveDocumentWithNestedArray = {
658658
/**
659659
* @ignore
660660
*/
661-
exports.shouldPeformCollectionRemoveWithNoCallback = {
661+
exports.shouldPerformCollectionRemoveWithNoCallback = {
662662
metadata: { requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } },
663663

664664
// The actual test we wish to run

test/functional/cursorstream_tests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ exports.shouldStreamDocumentsWithPauseAndResumeForFetching = {
2929
left = left - 1;
3030

3131
if(left == 0) {
32-
// Peform a find to get a cursor
32+
// Perform a find to get a cursor
3333
var stream = collection.find({}).stream();
3434
var data = [];
3535

@@ -88,7 +88,7 @@ exports.shouldStream10KDocuments = {
8888
left = left - 1;
8989

9090
if(left == 0) {
91-
// Peform a find to get a cursor
91+
// Perform a find to get a cursor
9292
var stream = collection.find({}).stream();
9393
var data = [];
9494

@@ -138,7 +138,7 @@ exports.shouldTriggerMassiveAmountOfGetMores = {
138138
db.createCollection('test_streaming_function_with_limit_for_fetching_3', function(err, collection) {
139139

140140
collection.insert(docs, {w:1}, function(err, ids) {
141-
// Peform a find to get a cursor
141+
// Perform a find to get a cursor
142142
var stream = collection.find({}).stream();
143143
var data = [];
144144

test/functional/find_tests.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ exports.shouldCorrectlyPerformSimpleFind = {
4747
* Test a simple find chained
4848
* @ignore
4949
*/
50-
exports.shouldCorrectlyPeformSimpleChainedFind = {
50+
exports.shouldCorrectlyPerformSimpleChainedFind = {
5151
metadata: { requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } },
5252

5353
// The actual test we wish to run
@@ -92,7 +92,7 @@ exports.shouldCorrectlyPeformSimpleChainedFind = {
9292
* Test advanced find
9393
* @ignore
9494
*/
95-
exports.shouldCorrectlyPeformAdvancedFinds = {
95+
exports.shouldCorrectlyPerformAdvancedFinds = {
9696
metadata: { requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } },
9797

9898
// The actual test we wish to run
@@ -1563,7 +1563,7 @@ exports.shouldReturnInstanceofErrorWithBadFieldSelection = {
15631563
/**
15641564
* A simple query using find and fields
15651565
*/
1566-
exports.shouldPeformASimpleLimitSkipFindWithFields = {
1566+
exports.shouldPerformASimpleLimitSkipFindWithFields = {
15671567
metadata: { requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } },
15681568

15691569
// The actual test we wish to run
@@ -1581,14 +1581,14 @@ exports.shouldPeformASimpleLimitSkipFindWithFields = {
15811581
collection.insert([{a:1, b:1}, {a:2, b:2}, {a:3, b:3}], configuration.writeConcernMax(), function(err, result) {
15821582
test.equal(null, err);
15831583

1584-
// Peform a simple find and return all the documents
1584+
// Perform a simple find and return all the documents
15851585
collection.find({a:2}, ['b']).toArray(function(err, docs) {
15861586
test.equal(null, err);
15871587
test.equal(1, docs.length);
15881588
test.equal(null, docs[0].a);
15891589
test.equal(2, docs[0].b);
15901590

1591-
// Peform a simple find and return all the documents
1591+
// Perform a simple find and return all the documents
15921592
collection.find({a:2}, {b:1}).toArray(function(err, docs) {
15931593
test.equal(null, err);
15941594
test.equal(1, docs.length);
@@ -1608,7 +1608,7 @@ exports.shouldPeformASimpleLimitSkipFindWithFields = {
16081608
/**
16091609
* A simple query using find and fields
16101610
*/
1611-
exports.shouldPeformASimpleLimitSkipFindWithFields2 = {
1611+
exports.shouldPerformASimpleLimitSkipFindWithFields2 = {
16121612
metadata: { requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } },
16131613

16141614
// The actual test we wish to run
@@ -1626,7 +1626,7 @@ exports.shouldPeformASimpleLimitSkipFindWithFields2 = {
16261626
collection.insert([{a:1, b:1}, {a:2, b:2}, {a:3, b:3}], configuration.writeConcernMax(), function(err, result) {
16271627
test.equal(null, err);
16281628

1629-
// Peform a simple find and return all the documents
1629+
// Perform a simple find and return all the documents
16301630
collection.find({a:2}, {fields: ['b']}).toArray(function(err, docs) {
16311631
test.equal(null, err);
16321632
test.equal(1, docs.length);
@@ -1668,7 +1668,7 @@ exports.shouldPerformQueryWithBatchSizeDifferentToStandard = {
16681668
collection.insert(docs, configuration.writeConcernMax(), function(err, result) {
16691669
test.equal(null, err);
16701670

1671-
// Peform a simple find and return all the documents
1671+
// Perform a simple find and return all the documents
16721672
collection.find({}, {batchSize:1000}).toArray(function(err, docs) {
16731673
test.equal(null, err);
16741674
test.equal(1000, docs.length);
@@ -1704,7 +1704,7 @@ exports.shouldCorrectlyPerformNegativeLimit = {
17041704

17051705
// Insert a bunch of documents
17061706
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
17081708
collection.find({}).limit(-10).toArray(function(err, docs) {
17091709
test.equal(null, err);
17101710
test.equal(10, docs.length);
@@ -1761,7 +1761,7 @@ exports.shouldCorrectlyExecuteExhaustQuery = {
17611761
collection.insert(docs2, configuration.writeConcernMax(), function(err, result) {
17621762
test.equal(null, err);
17631763

1764-
// Peform a simple find and return all the documents
1764+
// Perform a simple find and return all the documents
17651765
collection.find({}, {exhaust:true}).toArray(function(err, docs3) {
17661766
test.equal(null, err);
17671767
test.equal(docs1.length + docs2.length, docs3.length)
@@ -1800,7 +1800,7 @@ exports['Readpreferences should work fine when using a single server instance']
18001800
db.collection('Readpreferencesshouldworkfine', function(err, collection) {
18011801
// Insert a bunch of documents
18021802
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
18041804
collection.find({}, {exhaust:true}).toArray(function(err, docs2) {
18051805
test.equal(null, err);
18061806
test.equal(docs.length, docs2.length)
@@ -1827,7 +1827,7 @@ exports['Each should not hang on iterating over no results'] = {
18271827
test.equal(null, err);
18281828
// Create a collection we want to drop later
18291829
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
18311831
collection.find({}).each(function(err, item) {
18321832
test.equal(null, item);
18331833

test/functional/gridfs_tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ exports.shouldCorrectlyExecuteGridStoreExists = {
172172
/**
173173
* @ignore
174174
*/
175-
exports.shouldCorrectlyPeformGridStoreReadLength = {
175+
exports.shouldCorrectlyPerformGridStoreReadLength = {
176176
metadata: { requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } },
177177

178178
// The actual test we wish to run

test/functional/mapreduce_tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ exports.shouldSaveDataToDifferentDbFromMapreduce = {
260260
// Reduce function
261261
var reduce = function(k,vals) { return 1; };
262262

263-
// Peform the map reduce
263+
// Perform the map reduce
264264
collection.mapReduce(map, reduce, {out: {replace : 'tempCollection', db: "outputCollectionDb"}}, function(err, collection) {
265265

266266
// Mapreduce returns the temporary collection with the results

0 commit comments

Comments
 (0)