Skip to content

Commit a103871

Browse files
Arthur Cinaderflovilmart
authored andcommitted
fix some typos. (#4112)
* fix some typos. * more typos....
1 parent f840394 commit a103871

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

spec/AuthenticationAdapters.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var defaultColumns = require('../src/Controllers/SchemaController').defaultColum
44
var authenticationLoader = require('../src/Adapters/Auth');
55
var path = require('path');
66

7-
describe('AuthenticationProviers', function() {
7+
describe('AuthenticationProviders', function() {
88
["facebook", "github", "instagram", "google", "linkedin", "meetup", "twitter", "janrainengage", "janraincapture", "vkontakte"].map(function(providerName){
99
it("Should validate structure of " + providerName, (done) => {
1010
var provider = require("../src/Adapters/Auth/" + providerName);
@@ -230,10 +230,10 @@ describe('AuthenticationProviers', function() {
230230
expect(typeof validator).toBe('function');
231231
}
232232

233-
function validateAuthenticationHandler(authenticatonHandler) {
234-
expect(authenticatonHandler).not.toBeUndefined();
235-
expect(typeof authenticatonHandler.getValidatorForProvider).toBe('function');
236-
expect(typeof authenticatonHandler.getValidatorForProvider).toBe('function');
233+
function validateAuthenticationHandler(authenticationHandler) {
234+
expect(authenticationHandler).not.toBeUndefined();
235+
expect(typeof authenticationHandler.getValidatorForProvider).toBe('function');
236+
expect(typeof authenticationHandler.getValidatorForProvider).toBe('function');
237237
}
238238

239239
function validateAuthenticationAdapter(authAdapter) {

spec/index.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ describe('server', () => {
132132
});
133133
});
134134

135-
it('throws if you initialize email adapter incorrecly', done => {
135+
it('throws if you initialize email adapter incorrectly', done => {
136136
reconfigureServer({
137137
appName: 'unused',
138138
verifyUserEmails: true,
@@ -428,7 +428,7 @@ describe('server', () => {
428428
})
429429
});
430430

431-
it('should suceed if you provide valid ip in masterKeyIps', done => {
431+
it('should succeed if you provide valid ip in masterKeyIps', done => {
432432
reconfigureServer({ masterKeyIps: ['1.2.3.4','2001:0db8:0000:0042:0000:8a2e:0370:7334'] })
433433
.then(done)
434434
});

src/Adapters/Storage/Mongo/MongoSchemaCollection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class MongoSchemaCollection {
115115
.then(schemas => schemas.map(mongoSchemaToParseSchema));
116116
}
117117

118-
_fechOneSchemaFrom_SCHEMA(name: string) {
118+
_fetchOneSchemaFrom_SCHEMA(name: string) {
119119
return this._collection._rawFind(_mongoSchemaQueryFromNameQuery(name), { limit: 1 }).then(results => {
120120
if (results.length === 1) {
121121
return mongoSchemaToParseSchema(results[0]);
@@ -150,7 +150,7 @@ class MongoSchemaCollection {
150150

151151
// TODO: don't spend an extra query on finding the schema if the type we are trying to add isn't a GeoPoint.
152152
addFieldIfNotExists(className: string, fieldName: string, type: string) {
153-
return this._fechOneSchemaFrom_SCHEMA(className)
153+
return this._fetchOneSchemaFrom_SCHEMA(className)
154154
.then(schema => {
155155
// The schema exists. Check for existing GeoPoints.
156156
if (type.type === 'GeoPoint') {

src/Adapters/Storage/Mongo/MongoStorageAdapter.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export class MongoStorageAdapter {
203203
.then(schemaCollection => schemaCollection.findAndDeleteSchema(className))
204204
}
205205

206-
// Delete all data known to this adatper. Used for testing.
206+
// Delete all data known to this adapter. Used for testing.
207207
deleteAllClasses() {
208208
return storageAdapterAllCollections(this)
209209
.then(collections => Promise.all(collections.map(collection => collection.drop())));
@@ -220,7 +220,7 @@ export class MongoStorageAdapter {
220220
// Pointer field names are passed for legacy reasons: the original mongo
221221
// format stored pointer field names differently in the database, and therefore
222222
// needed to know the type of the field before it could delete it. Future database
223-
// adatpers should ignore the pointerFieldNames argument. All the field names are in
223+
// adapters should ignore the pointerFieldNames argument. All the field names are in
224224
// fieldNames, they show up additionally in the pointerFieldNames database for use
225225
// by the mongo adapter, which deals with the legacy mongo format.
226226

@@ -265,12 +265,12 @@ export class MongoStorageAdapter {
265265
// undefined as the reason.
266266
getClass(className) {
267267
return this._schemaCollection()
268-
.then(schemasCollection => schemasCollection._fechOneSchemaFrom_SCHEMA(className))
268+
.then(schemasCollection => schemasCollection._fetchOneSchemaFrom_SCHEMA(className))
269269
}
270270

271271
// TODO: As yet not particularly well specified. Creates an object. Maybe shouldn't even need the schema,
272272
// and should infer from the type. Or maybe does need the schema for validations. Or maybe needs
273-
// the schem only for the legacy mongo format. We'll figure that out later.
273+
// the schema only for the legacy mongo format. We'll figure that out later.
274274
createObject(className, schema, object) {
275275
schema = convertParseSchemaToMongoSchema(schema);
276276
const mongoObject = parseObjectToMongoObjectForCreate(className, object, schema);

0 commit comments

Comments
 (0)