From 9c903a0ebc117f4ba2216d22edaf34af03069888 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 30 Jan 2026 10:16:21 +0100 Subject: [PATCH] Remove unit-tests for global `ReadableStream` and `URL` These unit-tests were added many years ago, when this functionality wasn't generally available and we still bundled polyfills. Since they are both available everywhere nowadays, see [here](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream) and [here](https://developer.mozilla.org/en-US/docs/Web/API/URL), these unit-tests no longer make sense. --- test/unit/util_spec.js | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/test/unit/util_spec.js b/test/unit/util_spec.js index ac3b64321..cc6adda71 100644 --- a/test/unit/util_spec.js +++ b/test/unit/util_spec.js @@ -167,30 +167,6 @@ describe("util", function () { }); }); - describe("ReadableStream", function () { - it("should return an Object", function () { - const readable = new ReadableStream(); - expect(typeof readable).toEqual("object"); - }); - - it("should have property getReader", function () { - const readable = new ReadableStream(); - expect(typeof readable.getReader).toEqual("function"); - }); - }); - - describe("URL", function () { - it("should return an Object", function () { - const url = new URL("https://example.com"); - expect(typeof url).toEqual("object"); - }); - - it("should have property `href`", function () { - const url = new URL("https://example.com"); - expect(typeof url.href).toEqual("string"); - }); - }); - describe("createValidAbsoluteUrl", function () { it("handles invalid URLs", function () { expect(createValidAbsoluteUrl(undefined, undefined)).toEqual(null);