File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -1368,7 +1368,7 @@ describe('Parse.File testing', () => {
1368
1368
await reconfigureServer ( {
1369
1369
fileUpload : {
1370
1370
enableForPublic : true ,
1371
- fileExtensions : [ 'jpg' , 'any ' ] ,
1371
+ fileExtensions : [ 'jpg' , 'wav ' ] ,
1372
1372
} ,
1373
1373
} ) ;
1374
1374
await expectAsync (
@@ -1399,6 +1399,18 @@ describe('Parse.File testing', () => {
1399
1399
} ) ,
1400
1400
} )
1401
1401
) . toBeResolved ( ) ;
1402
+ await expectAsync (
1403
+ request ( {
1404
+ method : 'POST' ,
1405
+ url : 'http://localhost:8378/1/files/file' ,
1406
+ body : JSON . stringify ( {
1407
+ _ApplicationId : 'test' ,
1408
+ _JavaScriptKey : 'test' ,
1409
+ _ContentType : 'audio/wav' ,
1410
+ base64 : 'UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA' ,
1411
+ } ) ,
1412
+ } )
1413
+ ) . toBeResolved ( ) ;
1402
1414
} ) ;
1403
1415
1404
1416
it ( 'works with array without Content-Type' , async ( ) => {
You can’t perform that action at this time.
0 commit comments