()
| 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(); |
no test coverage detected