(id: string, comment: string)
| 33 | } |
| 34 | |
| 35 | export const updateMovie = async (id: string, comment: string) => { |
| 36 | const response = await fetch(`/movies/${id}`, { |
| 37 | method: 'POST', |
| 38 | body: JSON.stringify({ comment }), |
| 39 | headers: { 'Content-Type': 'application/json' }, |
| 40 | }) |
| 41 | return await response.json() |
| 42 | } |
| 43 | |
| 44 | export const worker = setupWorker( |
| 45 | http.get('/movies', async () => { |
nothing calls this directly
no outgoing calls
no test coverage detected