From f0ce06f06e4ecc498aa593c7daa946c462a1b2c6 Mon Sep 17 00:00:00 2001 From: lino-levan <11367844+lino-levan@users.noreply.github.com> Date: Tue, 22 Aug 2023 14:22:39 -0700 Subject: [PATCH] fix: broken assert --- tests/stealth_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/stealth_test.ts b/tests/stealth_test.ts index d3b2a27..511acf7 100644 --- a/tests/stealth_test.ts +++ b/tests/stealth_test.ts @@ -15,7 +15,7 @@ Deno.test("Testing stealth", async () => { const userAgent: string = await page.evaluate(() => { return navigator.userAgent; }); - assert(userAgent.toLowerCase().includes("headless")); + assert(!userAgent.toLowerCase().includes("headless")); // Close browser await browser.close();