Spaces:
Paused
Paused
Download src/runtime/node-fetch-compat.test.ts from bolikoto/zcode-daili: direct link, hf CLI and curl.
- Browser
- Download file 445 Bytes
-
https://huggingface.co/spaces/bolikoto/zcode-daili/resolve/main/src/runtime/node-fetch-compat.test.ts
- Command line
-
hf download hf://spaces/bolikoto/zcode-daili/src/runtime/node-fetch-compat.test.ts
-
curl -L -o node-fetch-compat.test.ts https://huggingface.co/spaces/bolikoto/zcode-daili/resolve/main/src/runtime/node-fetch-compat.test.ts
445 Bytes
| import { describe, it, expect } from "bun:test"; | |
| import { ensureNodeFetchNoTimeouts } from "./node-fetch-compat.js"; | |
| describe("ensureNodeFetchNoTimeouts", () => { | |
| it("is a safe no-op under Bun (never imports undici)", async () => { | |
| await expect(ensureNodeFetchNoTimeouts()).resolves.toBeUndefined(); | |
| // idempotent — second call must not throw either | |
| await expect(ensureNodeFetchNoTimeouts()).resolves.toBeUndefined(); | |
| }); | |
| }); | |