deno.land / x / esm@v135_2 / test / issue-578 / issue-578.test.ts
123456789101112131415import { assertEquals } from "https://deno.land/std@0.180.0/testing/asserts.ts";
Deno.test("issue #578", async () => { const { version } = await fetch("http://localhost:8080/status.json").then(( res, ) => res.json()); const res = await fetch(`http://localhost:8080/v${version}/katex@0.16.4/dist/katex.mjs`); const tsHeader = res.headers.get("x-typescript-types"); res.body?.cancel(); assertEquals( tsHeader, `http://localhost:8080/v${version}/@types/katex@~0.16/index.d.ts` );});
Version Info