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.
This commit is contained in:
Jonas Jenwald 2026-01-30 10:16:21 +01:00
parent 471adfd023
commit 9c903a0ebc

View File

@ -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);