File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1178,17 +1178,19 @@ describe('Parse.User testing', () => {
1178
1178
return user . _linkWith ( 'facebook' , { } ) ;
1179
1179
} ) . then ( user => {
1180
1180
expect ( user . _isLinked ( "facebook" ) ) . toBeTruthy ( ) ;
1181
- return Parse . User . _logInWith ( 'facebook' , { } ) ;
1181
+ // We should logout here as session token is passed
1182
+ // Probably need a fix in the JS SDK to handle those
1183
+ // linking errors
1184
+ return Parse . User . logOut ( ) . then ( ( ) => {
1185
+ return Parse . User . _logInWith ( 'facebook' , { } ) ;
1186
+ } ) ;
1182
1187
} ) . then ( user => {
1183
1188
const fileAgain = user . get ( 'file' ) ;
1184
1189
expect ( fileAgain . name ( ) ) . toMatch ( / y o l o .t x t $ / ) ;
1185
1190
expect ( fileAgain . url ( ) ) . toMatch ( / y o l o .t x t $ / ) ;
1186
1191
} ) . then ( ( ) => {
1187
1192
done ( ) ;
1188
- } , error => {
1189
- jfail ( error ) ;
1190
- done ( ) ;
1191
- } ) ;
1193
+ } ) . catch ( done . fail ) ;
1192
1194
} ) ;
1193
1195
1194
1196
it ( "log in with provider twice" , ( done ) => {
You can’t perform that action at this time.
0 commit comments