Skip to content

Commit f78357a

Browse files
authored
Apply suggestions from code review
Signed-off-by: Manuel <[email protected]>
1 parent be15411 commit f78357a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

spec/ParseUser.spec.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3386,7 +3386,7 @@ describe('Parse.User testing', () => {
33863386

33873387
it('should not retrieve hidden fields on GET users/me (#3432)', done => {
33883388
const emailAdapter = {
3389-
sendVerificationEmail: () => { },
3389+
sendVerificationEmail: () => {},
33903390
sendPasswordResetEmail: () => Promise.resolve(),
33913391
sendMail: () => Promise.resolve(),
33923392
};
@@ -3429,7 +3429,7 @@ describe('Parse.User testing', () => {
34293429

34303430
it('should not retrieve hidden fields on GET users/id (#3432)', done => {
34313431
const emailAdapter = {
3432-
sendVerificationEmail: () => { },
3432+
sendVerificationEmail: () => {},
34333433
sendPasswordResetEmail: () => Promise.resolve(),
34343434
sendMail: () => Promise.resolve(),
34353435
};
@@ -3477,7 +3477,7 @@ describe('Parse.User testing', () => {
34773477

34783478
it('should not retrieve hidden fields on login (#3432)', done => {
34793479
const emailAdapter = {
3480-
sendVerificationEmail: () => { },
3480+
sendVerificationEmail: () => {},
34813481
sendPasswordResetEmail: () => Promise.resolve(),
34823482
sendMail: () => Promise.resolve(),
34833483
};
@@ -3521,7 +3521,7 @@ describe('Parse.User testing', () => {
35213521

35223522
it('should not allow updates to hidden fields', async () => {
35233523
const emailAdapter = {
3524-
sendVerificationEmail: () => { },
3524+
sendVerificationEmail: () => {},
35253525
sendPasswordResetEmail: () => Promise.resolve(),
35263526
sendMail: () => Promise.resolve(),
35273527
};
@@ -3546,7 +3546,7 @@ describe('Parse.User testing', () => {
35463546

35473547
it('should allow updates to fields with maintenanceKey', async () => {
35483548
const emailAdapter = {
3549-
sendVerificationEmail: () => { },
3549+
sendVerificationEmail: () => {},
35503550
sendPasswordResetEmail: () => Promise.resolve(),
35513551
sendMail: () => Promise.resolve(),
35523552
};
@@ -3576,8 +3576,8 @@ describe('Parse.User testing', () => {
35763576
expect(e.code).toBe(Parse.Error.OBJECT_NOT_FOUND);
35773577
expect(
35783578
e.message === 'Invalid username/password.' ||
3579-
e.message ===
3580-
'Your account is locked due to multiple failed login attempts. Please try again after 1 minute(s)'
3579+
e.message ===
3580+
'Your account is locked due to multiple failed login attempts. Please try again after 1 minute(s)'
35813581
).toBeTrue();
35823582
}
35833583
}

src/RestWrite.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,6 @@ RestWrite.prototype.handleAuthData = async function (authData) {
525525

526526
const userId = this.getUserId();
527527
const userResult = results[0];
528-
529528
const foundUserIsNotCurrentUser = userId && userResult && userId !== userResult.objectId;
530529

531530
if (results.length > 1 || foundUserIsNotCurrentUser) {
@@ -1309,7 +1308,7 @@ RestWrite.prototype.handleInstallation = function () {
13091308
throw new Parse.Error(
13101309
132,
13111310
'Must specify installationId when deviceToken ' +
1312-
'matches multiple Installation objects'
1311+
'matches multiple Installation objects'
13131312
);
13141313
} else {
13151314
// Multiple device token matches and we specified an installation ID,

0 commit comments

Comments
 (0)