From ec42fdc899078141cc221e529e44d3e4ef6e1141 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 14 Aug 2025 02:01:11 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- test/js/web/navigator-readonly.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/js/web/navigator-readonly.test.ts b/test/js/web/navigator-readonly.test.ts index 41322ae18f..d79417d2c2 100644 --- a/test/js/web/navigator-readonly.test.ts +++ b/test/js/web/navigator-readonly.test.ts @@ -1,4 +1,4 @@ -import { test, expect } from "bun:test"; +import { expect, test } from "bun:test"; test("navigator properties should be getter-only like Node.js", () => { const originalUserAgent = navigator.userAgent; @@ -25,11 +25,11 @@ test("navigator properties should have getter-only descriptors like Node.js", () expect(userAgentDescriptor?.get).toBeTypeOf("function"); expect(userAgentDescriptor?.set).toBeUndefined(); expect(userAgentDescriptor?.configurable).toBe(false); - + expect(platformDescriptor?.get).toBeTypeOf("function"); expect(platformDescriptor?.set).toBeUndefined(); expect(platformDescriptor?.configurable).toBe(false); - + expect(hardwareConcurrencyDescriptor?.get).toBeTypeOf("function"); expect(hardwareConcurrencyDescriptor?.set).toBeUndefined(); expect(hardwareConcurrencyDescriptor?.configurable).toBe(false); @@ -37,14 +37,14 @@ test("navigator properties should have getter-only descriptors like Node.js", () test("Object.defineProperty should not be able to modify navigator properties", () => { const originalUserAgent = navigator.userAgent; - + expect(() => { Object.defineProperty(navigator, "userAgent", { value: "modified", writable: true, - configurable: true + configurable: true, }); }).toThrow(); - + expect(navigator.userAgent).toBe(originalUserAgent); -}); \ No newline at end of file +});