(id)
| 145 | let req; |
| 146 | |
| 147 | async function getObject(id) { |
| 148 | const res = await request({ |
| 149 | headers: { |
| 150 | 'X-Parse-Application-Id': 'test', |
| 151 | 'X-Parse-REST-API-Key': 'rest', |
| 152 | }, |
| 153 | method: 'GET', |
| 154 | url: `http://localhost:8378/1/classes/TestObject/${id}`, |
| 155 | }); |
| 156 | |
| 157 | return res.data; |
| 158 | } |
| 159 | |
| 160 | beforeEach(() => { |
| 161 | req = { |