Download src/mocks/feedback-handlers.ts from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 424 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/mocks/feedback-handlers.ts
- Command line
-
hf download hf://SaylorTwift/openhands/src/mocks/feedback-handlers.ts
-
curl -L -o feedback-handlers.ts https://huggingface.co/SaylorTwift/openhands/resolve/main/src/mocks/feedback-handlers.ts
424 Bytes
| import { http, delay, HttpResponse } from "msw"; | |
| export const FEEDBACK_HANDLERS = [ | |
| http.post("*/api/submit-feedback", async () => { | |
| await delay(1200); | |
| return HttpResponse.json({ | |
| statusCode: 200, | |
| body: { message: "Success", link: "fake-url.com", password: "abc123" }, | |
| }); | |
| }), | |
| http.post("*/api/submit-feedback", async () => | |
| HttpResponse.json({ statusCode: 200 }, { status: 200 }), | |
| ), | |
| ]; | |