Skip to content

Commit f5e4205

Browse files
Add wav file to test case
1 parent 8f1ceac commit f5e4205

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

spec/ParseFile.spec.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ describe('Parse.File testing', () => {
13681368
await reconfigureServer({
13691369
fileUpload: {
13701370
enableForPublic: true,
1371-
fileExtensions: ['jpg', 'any'],
1371+
fileExtensions: ['jpg', 'wav'],
13721372
},
13731373
});
13741374
await expectAsync(
@@ -1399,6 +1399,18 @@ describe('Parse.File testing', () => {
13991399
}),
14001400
})
14011401
).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();
14021414
});
14031415

14041416
it('works with array without Content-Type', async () => {

0 commit comments

Comments
 (0)