deno.land / x / esm@v135_2 / test / issue-728 / issue-728.test.ts
1234567891011121314151617import { 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", );});
Version Info