MCPcopy
hub / github.com/parse-community/parse-server / uploadTestFile

Function uploadTestFile

spec/FileDownload.spec.js:49–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48 describe('permissions', () => {
49 async function uploadTestFile() {
50 const request = require('../lib/request');
51 const res = await request({
52 headers: {
53 'Content-Type': 'text/plain',
54 'X-Parse-Application-Id': 'test',
55 'X-Parse-Master-Key': 'test',
56 },
57 method: 'POST',
58 url: 'http://localhost:8378/1/files/test.txt',
59 body: 'hello world',
60 });
61 return res.data;
62 }
63
64 it('should allow public download by default', async () => {
65 await reconfigureServer();

Callers 1

Calls 1

requestFunction · 0.50

Tested by

no test coverage detected