@@ -658,13 +658,11 @@ describe('Pages Router', () => {
658
658
const appId = linkResponse . headers [ 'x-parse-page-param-appid' ] ;
659
659
const token = linkResponse . headers [ 'x-parse-page-param-token' ] ;
660
660
const locale = linkResponse . headers [ 'x-parse-page-param-locale' ] ;
661
- const username = linkResponse . headers [ 'x-parse-page-param-username' ] ;
662
661
const publicServerUrl = linkResponse . headers [ 'x-parse-page-param-publicserverurl' ] ;
663
662
const passwordResetPagePath = pageResponse . calls . all ( ) [ 0 ] . args [ 0 ] ;
664
663
expect ( appId ) . toBeDefined ( ) ;
665
664
expect ( token ) . toBeDefined ( ) ;
666
665
expect ( locale ) . toBeDefined ( ) ;
667
- expect ( username ) . toBeDefined ( ) ;
668
666
expect ( publicServerUrl ) . toBeDefined ( ) ;
669
667
expect ( passwordResetPagePath ) . toMatch (
670
668
new RegExp ( `\/${ exampleLocale } \/${ pages . passwordReset . defaultFile } ` )
@@ -678,7 +676,6 @@ describe('Pages Router', () => {
678
676
body : {
679
677
token,
680
678
locale,
681
- username,
682
679
new_password : 'newPassword' ,
683
680
} ,
684
681
headers : { 'Content-Type' : 'application/x-www-form-urlencoded' } ,
@@ -773,15 +770,13 @@ describe('Pages Router', () => {
773
770
774
771
const appId = linkResponse . headers [ 'x-parse-page-param-appid' ] ;
775
772
const locale = linkResponse . headers [ 'x-parse-page-param-locale' ] ;
776
- const username = linkResponse . headers [ 'x-parse-page-param-username' ] ;
777
773
const publicServerUrl = linkResponse . headers [ 'x-parse-page-param-publicserverurl' ] ;
778
774
const invalidVerificationPagePath = pageResponse . calls . all ( ) [ 0 ] . args [ 0 ] ;
779
775
expect ( appId ) . toBeDefined ( ) ;
780
776
expect ( locale ) . toBe ( exampleLocale ) ;
781
- expect ( username ) . toBeDefined ( ) ;
782
777
expect ( publicServerUrl ) . toBeDefined ( ) ;
783
778
expect ( invalidVerificationPagePath ) . toMatch (
784
- new RegExp ( `\/${ exampleLocale } \/${ pages . emailVerificationLinkExpired . defaultFile } ` )
779
+ new RegExp ( `\/${ exampleLocale } \/${ pages . emailVerificationLinkInvalid . defaultFile } ` )
785
780
) ;
786
781
787
782
const formUrl = `${ publicServerUrl } /apps/${ appId } /resend_verification_email` ;
@@ -790,7 +785,7 @@ describe('Pages Router', () => {
790
785
method : 'POST' ,
791
786
body : {
792
787
locale,
793
- username,
788
+ username : 'exampleUsername' ,
794
789
} ,
795
790
headers : { 'Content-Type' : 'application/x-www-form-urlencoded' } ,
796
791
followRedirects : false ,
@@ -826,15 +821,13 @@ describe('Pages Router', () => {
826
821
827
822
const appId = linkResponse . headers [ 'x-parse-page-param-appid' ] ;
828
823
const locale = linkResponse . headers [ 'x-parse-page-param-locale' ] ;
829
- const username = linkResponse . headers [ 'x-parse-page-param-username' ] ;
830
824
const publicServerUrl = linkResponse . headers [ 'x-parse-page-param-publicserverurl' ] ;
831
825
const invalidVerificationPagePath = pageResponse . calls . all ( ) [ 0 ] . args [ 0 ] ;
832
826
expect ( appId ) . toBeDefined ( ) ;
833
827
expect ( locale ) . toBe ( exampleLocale ) ;
834
- expect ( username ) . toBeDefined ( ) ;
835
828
expect ( publicServerUrl ) . toBeDefined ( ) ;
836
829
expect ( invalidVerificationPagePath ) . toMatch (
837
- new RegExp ( `\/${ exampleLocale } \/${ pages . emailVerificationLinkExpired . defaultFile } ` )
830
+ new RegExp ( `\/${ exampleLocale } \/${ pages . emailVerificationLinkInvalid . defaultFile } ` )
838
831
) ;
839
832
840
833
spyOn ( UserController . prototype , 'resendVerificationEmail' ) . and . callFake ( ( ) =>
@@ -847,7 +840,7 @@ describe('Pages Router', () => {
847
840
method : 'POST' ,
848
841
body : {
849
842
locale,
850
- username,
843
+ username : 'exampleUsername' ,
851
844
} ,
852
845
headers : { 'Content-Type' : 'application/x-www-form-urlencoded' } ,
853
846
followRedirects : false ,
@@ -1132,12 +1125,10 @@ describe('Pages Router', () => {
1132
1125
1133
1126
const appId = linkResponse . headers [ 'x-parse-page-param-appid' ] ;
1134
1127
const token = linkResponse . headers [ 'x-parse-page-param-token' ] ;
1135
- const username = linkResponse . headers [ 'x-parse-page-param-username' ] ;
1136
1128
const publicServerUrl = linkResponse . headers [ 'x-parse-page-param-publicserverurl' ] ;
1137
1129
const passwordResetPagePath = pageResponse . calls . all ( ) [ 0 ] . args [ 0 ] ;
1138
1130
expect ( appId ) . toBeDefined ( ) ;
1139
1131
expect ( token ) . toBeDefined ( ) ;
1140
- expect ( username ) . toBeDefined ( ) ;
1141
1132
expect ( publicServerUrl ) . toBeDefined ( ) ;
1142
1133
expect ( passwordResetPagePath ) . toMatch ( new RegExp ( `\/${ pages . passwordReset . defaultFile } ` ) ) ;
1143
1134
pageResponse . calls . reset ( ) ;
@@ -1148,7 +1139,6 @@ describe('Pages Router', () => {
1148
1139
method : 'POST' ,
1149
1140
body : {
1150
1141
token,
1151
- username,
1152
1142
new_password : 'newPassword' ,
1153
1143
} ,
1154
1144
headers : { 'Content-Type' : 'application/x-www-form-urlencoded' } ,
0 commit comments