diff --git a/test/compat/test.ts b/test/compat/test.ts deleted file mode 100644 index 6ad6c8fe..00000000 --- a/test/compat/test.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { assertStringIncludes } from "jsr:@std/assert"; - -Deno.test("HeadlessChrome", async () => { - const res = await fetch("http://localhost:8080/react@18.2.0", { - headers: { - "User-Agent": "HeadlessChrome/109", - }, - }); - const text = await res.text(); - assertStringIncludes(text, "/es2021/"); -}); diff --git a/test/target-from-ua/test.ts b/test/target-from-ua/test.ts index ec2190d2..7c87ab16 100644 --- a/test/target-from-ua/test.ts +++ b/test/target-from-ua/test.ts @@ -9,6 +9,7 @@ Deno.test("build target from UA", async () => { }; assertEquals(await getTarget("Deno/1.33.1"), "deno"); assertEquals(await getTarget("Deno/1.33.2"), "denonext"); + assertEquals(await getTarget("HeadlessChrome/109"), "es2021"); assertEquals( await getTarget( "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",