(userId: string, statusCodeExpected = httpStatus.OK)
| 67 | } |
| 68 | |
| 69 | async getUser(userId: string, statusCodeExpected = httpStatus.OK) { |
| 70 | const { body } = await this.request |
| 71 | .get(`/users/${userId}`) |
| 72 | .expect(statusCodeExpected); |
| 73 | |
| 74 | return body; |
| 75 | } |
| 76 | |
| 77 | async updateUser(userId: string, payload: any, statusCodeExpected = httpStatus.OK) { |
| 78 | const { body } = await this.request |
no outgoing calls
no test coverage detected