diff --git a/spec/ParseInstallation.spec.js b/spec/ParseInstallation.spec.js index 0a601be2..d462ad46 100644 --- a/spec/ParseInstallation.spec.js +++ b/spec/ParseInstallation.spec.js @@ -1244,11 +1244,11 @@ describe('Installations', () => { deviceToken: '11433856eed2f1285fb3aa11136718c1198ed5647875096952c66bf8cb976306', deviceType: 'ios', }; - await rest.create(config, auth.nobody(config), '_Installation', input) + await rest.create(config, auth.nobody(config), '_Installation', input); const functions = { beforeSave() {}, - afterSave() {} - } + afterSave() {}, + }; spyOn(functions, 'beforeSave').and.callThrough(); spyOn(functions, 'afterSave').and.callThrough(); Parse.Cloud.beforeSave(Parse.Installation, functions.beforeSave); @@ -1283,7 +1283,7 @@ describe('Installations', () => { }, }); await new Promise(resolve => setTimeout(resolve, 1000)); - const installation = await new Parse.Query(Parse.Installation).first({useMasterKey: true}); + const installation = await new Parse.Query(Parse.Installation).first({ useMasterKey: true }); expect(installation.get('badge')).toEqual(3); expect(functions.beforeSave).not.toHaveBeenCalled(); expect(functions.afterSave).not.toHaveBeenCalled(); diff --git a/spec/index.spec.js b/spec/index.spec.js index 0693ae50..837656d1 100644 --- a/spec/index.spec.js +++ b/spec/index.spec.js @@ -469,8 +469,8 @@ describe('server', () => { }); it('fails if default limit is wrong type', async () => { - for (const value of ["invalid", {}, [], true]) { - await expectAsync(reconfigureServer({ defaultLimit: value})).toBeRejectedWith( + for (const value of ['invalid', {}, [], true]) { + await expectAsync(reconfigureServer({ defaultLimit: value })).toBeRejectedWith( 'Default limit must be a number.' ); } diff --git a/src/Config.js b/src/Config.js index 69a326b1..9c5fb3bc 100644 --- a/src/Config.js +++ b/src/Config.js @@ -12,7 +12,7 @@ import { PagesOptions, SecurityOptions, SchemaOptions, - ParseServerOptions + ParseServerOptions, } from './Options/Definitions'; import { isBoolean, isString } from 'lodash'; @@ -458,7 +458,7 @@ export class Config { static validateDefaultLimit(defaultLimit) { if (defaultLimit == null) { - defaultLimit = ParseServerOptions.defaultLimit.default + defaultLimit = ParseServerOptions.defaultLimit.default; } if (typeof defaultLimit !== 'number') { throw 'Default limit must be a number.';