File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 44'use strict' ;
55
66const request = require ( '../lib/request' ) ;
7- const Definitions = require ( '../src/Options/Definitions' ) ;
87
98const str = 'Hello World!' ;
109const data = [ ] ;
@@ -865,11 +864,7 @@ describe('Parse.File testing', () => {
865864 describe ( 'file upload configuration' , ( ) => {
866865 it ( 'allows file upload only for authenticated user by default' , async ( ) => {
867866 await reconfigureServer ( {
868- fileUpload : {
869- enableForPublic : Definitions . FileUploadOptions . enableForPublic . default ,
870- enableForAnonymousUser : Definitions . FileUploadOptions . enableForAnonymousUser . default ,
871- enableForAuthenticatedUser : Definitions . FileUploadOptions . enableForAuthenticatedUser . default ,
872- }
867+ fileUpload : { } ,
873868 } ) ;
874869 let file = new Parse . File ( 'hello.txt' , data , 'text/plain' ) ;
875870 await expectAsync ( file . save ( ) ) . toBeRejectedWith (
You can’t perform that action at this time.
0 commit comments