(userId: string, payload: any, statusCodeExpected = httpStatus.OK)
| 75 | } |
| 76 | |
| 77 | async updateUser(userId: string, payload: any, statusCodeExpected = httpStatus.OK) { |
| 78 | const { body } = await this.request |
| 79 | .patch(`/users/${userId}`) |
| 80 | .send(payload) |
| 81 | .expect(statusCodeExpected); |
| 82 | |
| 83 | return body; |
| 84 | } |
| 85 | |
| 86 | async deleteUser(userId: string, statusCodeExpected = httpStatus.NO_CONTENT) { |
| 87 | await this.request |
no outgoing calls
no test coverage detected