@@ -223,7 +223,7 @@ describe('ParseUser', () => {
223
223
ParseUser . _clearCache ( ) ;
224
224
CoreManager . setRESTController ( {
225
225
request ( method , path , body ) {
226
- expect ( method ) . toBe ( 'GET ' ) ;
226
+ expect ( method ) . toBe ( 'POST ' ) ;
227
227
expect ( path ) . toBe ( 'login' ) ;
228
228
expect ( body . username ) . toBe ( 'username' ) ;
229
229
expect ( body . password ) . toBe ( 'password' ) ;
@@ -259,7 +259,7 @@ describe('ParseUser', () => {
259
259
ParseUser . _clearCache ( ) ;
260
260
CoreManager . setRESTController ( {
261
261
request ( method , path , body , options ) {
262
- expect ( method ) . toBe ( 'GET ' ) ;
262
+ expect ( method ) . toBe ( 'POST ' ) ;
263
263
expect ( path ) . toBe ( 'login' ) ;
264
264
expect ( body . username ) . toBe ( 'username' ) ;
265
265
expect ( body . password ) . toBe ( 'password' ) ;
@@ -288,7 +288,7 @@ describe('ParseUser', () => {
288
288
ParseUser . _clearCache ( ) ;
289
289
CoreManager . setRESTController ( {
290
290
request ( method , path , body ) {
291
- expect ( method ) . toBe ( 'POST ' ) ;
291
+ expect ( method ) . toBe ( 'GET ' ) ;
292
292
expect ( path ) . toBe ( 'login' ) ;
293
293
expect ( body . username ) . toBe ( 'username' ) ;
294
294
expect ( body . password ) . toBe ( 'password' ) ;
@@ -304,7 +304,7 @@ describe('ParseUser', () => {
304
304
} ,
305
305
ajax ( ) { } ,
306
306
} ) ;
307
- ParseUser . logIn ( 'username' , 'password' , { usePost : true } ) . then ( u => {
307
+ ParseUser . logIn ( 'username' , 'password' , { usePost : false } ) . then ( u => {
308
308
expect ( u . id ) . toBe ( 'uid2' ) ;
309
309
expect ( u . getSessionToken ( ) ) . toBe ( '123abc' ) ;
310
310
expect ( u . isCurrent ( ) ) . toBe ( true ) ;
@@ -342,7 +342,7 @@ describe('ParseUser', () => {
342
342
ParseUser . _clearCache ( ) ;
343
343
CoreManager . setRESTController ( {
344
344
request ( method , path , body ) {
345
- expect ( method ) . toBe ( 'GET ' ) ;
345
+ expect ( method ) . toBe ( 'POST ' ) ;
346
346
expect ( path ) . toBe ( 'login' ) ;
347
347
expect ( body . username ) . toBe ( 'username' ) ;
348
348
expect ( body . password ) . toBe ( 'password' ) ;
@@ -1469,7 +1469,7 @@ describe('ParseUser', () => {
1469
1469
let u = null ;
1470
1470
CoreManager . setRESTController ( {
1471
1471
request ( method , path , body ) {
1472
- expect ( method ) . toBe ( 'GET ' ) ;
1472
+ expect ( method ) . toBe ( 'POST ' ) ;
1473
1473
expect ( path ) . toBe ( 'login' ) ;
1474
1474
expect ( body . username ) . toBe ( 'username' ) ;
1475
1475
expect ( body . password ) . toBe ( 'password' ) ;
@@ -1524,7 +1524,7 @@ describe('ParseUser', () => {
1524
1524
let u = null ;
1525
1525
CoreManager . setRESTController ( {
1526
1526
request ( method , path , body ) {
1527
- expect ( method ) . toBe ( 'GET ' ) ;
1527
+ expect ( method ) . toBe ( 'POST ' ) ;
1528
1528
expect ( path ) . toBe ( 'login' ) ;
1529
1529
expect ( body . username ) . toBe ( 'username' ) ;
1530
1530
expect ( body . password ) . toBe ( 'password' ) ;
0 commit comments