Skip to content

Commit 8539315

Browse files
committed
run prettier
1 parent 7714357 commit 8539315

File tree

4 files changed

+619
-596
lines changed

4 files changed

+619
-596
lines changed

spec/AccountLockoutPolicy.spec.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,8 @@ describe('lockout with password reset option', () => {
351351
{
352352
duration: 10000,
353353
threshold: 1,
354-
}, options
354+
},
355+
options
355356
);
356357
const config = {
357358
appName: 'exampleApp',
@@ -377,7 +378,7 @@ describe('lockout with password reset option', () => {
377378
});
378379

379380
it('rejects invalid unlockOnPasswordReset option', async () => {
380-
const values = ["a", 0, {}, [], null];
381+
const values = ['a', 0, {}, [], null];
381382

382383
for (const value of values) {
383384
await expectAsync(setup({ unlockOnPasswordReset: value })).toBeRejected();
@@ -388,7 +389,9 @@ describe('lockout with password reset option', () => {
388389
await expectAsync(setup({ unlockOnPasswordReset: undefined })).toBeResolved();
389390

390391
const parseConfig = Config.get(Parse.applicationId);
391-
expect(parseConfig.accountLockout.unlockOnPasswordReset).toBe(Definitions.AccountLockoutOptions.unlockOnPasswordReset.default);
392+
expect(parseConfig.accountLockout.unlockOnPasswordReset).toBe(
393+
Definitions.AccountLockoutOptions.unlockOnPasswordReset.default
394+
);
392395
});
393396

394397
it('allow login for locked account after password reset', async () => {

src/AccountLockout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export class AccountLockout {
172172
{
173173
_failed_login_count: { __op: 'Delete' },
174174
_account_lockout_expires_at: { __op: 'Delete' },
175-
},
175+
}
176176
);
177177
}
178178
}

0 commit comments

Comments
 (0)