()
| 509 | it("sends is_public in the direct multipart form only when public is requested", async () => { |
| 510 | const dir = makeProjectDir(); |
| 511 | const directFetch = () => |
| 512 | vi |
| 513 | .fn() |
| 514 | .mockResolvedValueOnce(new Response("not found", { status: 404 })) |
| 515 | .mockResolvedValueOnce( |
| 516 | new Response( |
| 517 | JSON.stringify({ |
| 518 | data: { |
| 519 | project_id: "hfp_123", |
| 520 | title: "demo", |
| 521 | file_count: 1, |
| 522 | url: "https://hyperframes.dev/p/hfp_123", |
| 523 | claim_token: "claim-token", |
| 524 | }, |
| 525 | }), |
| 526 | { status: 200 }, |
| 527 | ), |
| 528 | ); |
| 529 | |
| 530 | try { |
| 531 | writeFileSync(join(dir, "index.html"), "<html></html>", "utf-8"); |
no outgoing calls
no test coverage detected