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

issue-640.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
24
25
import { 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"), );});
esm

Version Info

Tagged at
3 months ago