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', () => {
54
54
success : function ( user ) {
55
55
Parse . User . logIn ( "non_existent_user" , "asdf3" ,
56
56
expectError ( Parse . Error . OBJECT_NOT_FOUND , done ) ) ;
57
- } ,
57
+ } ,
58
58
error : function ( err ) {
59
59
console . error ( err ) ;
60
60
fail ( "Shit should not fail" ) ;
@@ -1763,5 +1763,22 @@ describe('Parse.User testing', () => {
1763
1763
} ) ;
1764
1764
} ) ;
1765
1765
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
+ } ) ;
1766
1783
} ) ;
1767
1784
You can’t perform that action at this time.
0 commit comments