File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ describe('Parse.User testing', () => {
5454 success : function ( user ) {
5555 Parse . User . logIn ( "non_existent_user" , "asdf3" ,
5656 expectError ( Parse . Error . OBJECT_NOT_FOUND , done ) ) ;
57- } ,
57+ } ,
5858 error : function ( err ) {
5959 console . error ( err ) ;
6060 fail ( "Shit should not fail" ) ;
@@ -1763,5 +1763,22 @@ describe('Parse.User testing', () => {
17631763 } ) ;
17641764 } ) ;
17651765
1766+ it ( "session expiresAt correct format" , ( done ) => {
1767+ Parse . User . signUp ( "asdf" , "zxcv" , null , {
1768+ success : function ( user ) {
1769+ request . get ( {
1770+ url : 'http://localhost:8378/1/classes/_Session' ,
1771+ json : true ,
1772+ headers : {
1773+ 'X-Parse-Application-Id' : 'test' ,
1774+ 'X-Parse-Master-Key' : 'test' ,
1775+ } ,
1776+ } , ( error , response , body ) => {
1777+ expect ( body . results [ 0 ] . expiresAt . __type ) . toEqual ( 'Date' ) ;
1778+ done ( ) ;
1779+ } )
1780+ }
1781+ } ) ;
1782+ } ) ;
17661783} ) ;
17671784
You can’t perform that action at this time.
0 commit comments