(amount)
| 1503 | const object = new Parse.Object('AnObject'); |
| 1504 | |
| 1505 | function runIncrement(amount) { |
| 1506 | const options = Object.assign({}, requestOptions, { |
| 1507 | body: { |
| 1508 | key: { |
| 1509 | __op: 'Increment', |
| 1510 | amount: amount, |
| 1511 | }, |
| 1512 | }, |
| 1513 | url: 'http://localhost:8378/1/classes/AnObject/' + object.id, |
| 1514 | method: 'PUT', |
| 1515 | }); |
| 1516 | return request(options).then(res => res.data); |
| 1517 | } |
| 1518 | |
| 1519 | object |
| 1520 | .save() |
no test coverage detected