(url, options)
| 56 | }; |
| 57 | |
| 58 | const get = function (url, options) { |
| 59 | options.qs = options.body; |
| 60 | delete options.body; |
| 61 | Object.keys(options.qs).forEach(key => { |
| 62 | options.qs[key] = JSON.stringify(options.qs[key]); |
| 63 | }); |
| 64 | return request(Object.assign({}, { url }, options)) |
| 65 | .then(response => response.data) |
| 66 | .catch(response => { |
| 67 | throw { error: response.data }; |
| 68 | }); |
| 69 | }; |
| 70 | |
| 71 | describe('Parse.Query Aggregate testing', () => { |
| 72 | beforeEach(async () => { |
no test coverage detected