File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3454,7 +3454,7 @@ describe('Parse.User testing', () => {
3454
3454
} ) ;
3455
3455
} ) ;
3456
3456
3457
- it ( 'does not duplicate session when loggin in multiple times #3451' , ( done ) => {
3457
+ it ( 'does not duplicate session when logging in multiple times #3451' , ( done ) => {
3458
3458
const user = new Parse . User ( ) ;
3459
3459
user . signUp ( {
3460
3460
username : 'yolo' ,
@@ -3465,13 +3465,13 @@ describe('Parse.User testing', () => {
3465
3465
while ( promises . length != 5 ) {
3466
3466
Parse . User . logIn ( 'yolo' , 'yolo' )
3467
3467
promises . push ( Parse . User . logIn ( 'yolo' , 'yolo' ) . then ( ( res ) => {
3468
- // generate a new session token every times
3468
+ // ensure a new session token is generated at each login
3469
3469
expect ( res . getSessionToken ( ) ) . not . toBe ( user . getSessionToken ( ) ) ;
3470
3470
} ) ) ;
3471
3471
}
3472
3472
return Promise . all ( promises ) ;
3473
3473
} ) . then ( ( ) => {
3474
- // wait because session destruction is not syncrhonous
3474
+ // wait because session destruction is not synchronous
3475
3475
return new Promise ( ( resolve ) => {
3476
3476
setTimeout ( resolve , 100 ) ;
3477
3477
} ) ;
You can’t perform that action at this time.
0 commit comments