deno.land / x / esm@v135_2 / test / issue-640 / issue-640.test.ts
12345678910111213141516171819202122232425import { assertEquals, assertStringIncludes,} from "https://deno.land/std@0.180.0/testing/asserts.ts";
const { version } = await fetch("http://localhost:8080/status.json").then( (r) => r.json(),);
Deno.test("issue #640", async () => { const res = await fetch( `http://localhost:8080/v${version}/lightningcss-wasm@1.20.0/index.d.ts`, { redirect: "manual" }, ); assertEquals(res.status, 200); assertEquals( res.headers.get("content-type")!, "application/typescript; charset=utf-8", ); assertStringIncludes( await res.text(), ["export interface ImportDependency {", " type: 'import',"].join("\n"), );});
Version Info