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

issue-728.test.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { assertEquals } from "https://deno.land/std@0.180.0/testing/asserts.ts";
Deno.test("issue #728", async () => { const res = await fetch( "http://localhost:8080/status.json", ); const { version } = await res.json(); const res2 = await fetch( `http://localhost:8080/v${version}/@wooorm/starry-night@3.0.0/es2022/source.css.js`, ); res2.body?.cancel(); assertEquals( res2.headers.get("content-type"), "application/javascript; charset=utf-8", );});
esm

Version Info

Tagged at
a year ago