(id = 'user-123', organizationId?: string)
| 59 | method: 'POST', |
| 60 | headers: { 'Content-Type': 'application/json', ...headers }, |
| 61 | body: JSON.stringify(body), |
| 62 | }); |
| 63 | } |
| 64 | |
| 65 | function setUserAuth(id = 'user-123', organizationId?: string) { |
| 66 | mockedGetUserFromAuth.mockResolvedValue({ |
| 67 | user: { id } as User, |
| 68 | authFailedResponse: null, |
| 69 | organizationId, |
| 70 | }); |