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

issue-694.test.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { assertStringIncludes } from "https://deno.land/std@0.180.0/testing/asserts.ts";
Deno.test("issue #694", async () => { const res = await fetch( "http://localhost:8080/monaco-editor@0.40.0/esm/vs/editor/editor.worker?target=es2022&bundle", ); await res.body?.cancel(); const id = res.headers.get("x-esm-id"); const code = await fetch( `http://localhost:8080/${id}`, ).then((res) => res.text()); assertStringIncludes(code, `globalThis.__Process$=`);});
esm

Version Info

Tagged at
a year ago