@@ -789,59 +789,11 @@ describe('Parse.File testing', () => {
789
789
headers : {
790
790
'Content-Type' : 'application/octet-stream' ,
791
791
'X-Parse-Application-Id' : 'test' ,
792
- Range : 'bytes=abc-efs' ,
793
792
} ,
794
793
} ) . catch ( e => e ) ;
795
794
expect ( file . headers [ 'content-range' ] ) . toBeUndefined ( ) ;
796
795
} ) ;
797
796
798
- it ( 'supports bytes range if start and end undefined' , async ( ) => {
799
- const headers = {
800
- 'Content-Type' : 'application/octet-stream' ,
801
- 'X-Parse-Application-Id' : 'test' ,
802
- 'X-Parse-REST-API-Key' : 'rest' ,
803
- } ;
804
- const response = await request ( {
805
- method : 'POST' ,
806
- headers : headers ,
807
- url : 'http://localhost:8378/1//files/file.txt ' ,
808
- body : repeat ( 'argle bargle' , 100 ) ,
809
- } ) ;
810
- const b = response . data ;
811
- const file = await request ( {
812
- url : b . url ,
813
- headers : {
814
- 'Content-Type' : 'application/octet-stream' ,
815
- 'X-Parse-Application-Id' : 'test' ,
816
- } ,
817
- } ) . catch ( e => e ) ;
818
- expect ( file . headers [ 'content-range' ] ) . toBeUndefined ( ) ;
819
- } ) ;
820
-
821
- it ( 'supports bytes range if end is greater than size' , async ( ) => {
822
- const headers = {
823
- 'Content-Type' : 'application/octet-stream' ,
824
- 'X-Parse-Application-Id' : 'test' ,
825
- 'X-Parse-REST-API-Key' : 'rest' ,
826
- } ;
827
- const response = await request ( {
828
- method : 'POST' ,
829
- headers : headers ,
830
- url : 'http://localhost:8378/1//files/file.txt ' ,
831
- body : repeat ( 'argle bargle' , 100 ) ,
832
- } ) ;
833
- const b = response . data ;
834
- const file = await request ( {
835
- url : b . url ,
836
- headers : {
837
- 'Content-Type' : 'application/octet-stream' ,
838
- 'X-Parse-Application-Id' : 'test' ,
839
- Range : 'bytes=0-2000' ,
840
- } ,
841
- } ) . catch ( e => e ) ;
842
- expect ( file . headers [ 'content-range' ] ) . toBe ( 'bytes 0-1212/1212' ) ;
843
- } ) ;
844
-
845
797
it ( 'supports bytes range if end is greater than size' , async ( ) => {
846
798
const headers = {
847
799
'Content-Type' : 'application/octet-stream' ,
0 commit comments