deno.land / x / esm@v135_2 / test / issue-589 / issue-589.test.ts

issue-589.test.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { assert, assertEquals,} from "https://deno.land/std@0.180.0/testing/asserts.ts";
Deno.test("issue #589", async () => { const { version } = await fetch("http://localhost:8080/status.json").then(( res, ) => res.json()); const res = await fetch( "http://localhost:8080/@types/react@^18/index.d.ts", { redirect: "manual" }, ); res.body?.cancel();
assertEquals(res.status, 302); assert( res.headers.get("location")!.startsWith( `http://localhost:8080/v${version}/@types/react@18.`, ), );});
esm

Version Info

Tagged at
a year ago