({ url, data, status })
| 30 | }; |
| 31 | |
| 32 | const patch = async ({ url, data, status }) => { |
| 33 | try { |
| 34 | return await request("localhost:3000") |
| 35 | .patch(url) |
| 36 | .send(data) |
| 37 | .expect("Content-Type", /json/) |
| 38 | .expect(status); |
| 39 | } catch (error) { |
| 40 | console.log(error); |
| 41 | } |
| 42 | }; |
| 43 | |
| 44 | const deleteIt = async ({ url, status }) => { |
| 45 | return await request("localhost:3000").delete(url).expect(status); |
no test coverage detected