Merge pull request #20605 from Snuffleupagus/rm-util-global-tests

Remove unit-tests for global `ReadableStream` and `URL`
This commit is contained in:
Jonas Jenwald 2026-01-30 14:06:15 +01:00 committed by GitHub
commit d4fbae06d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 26 deletions

View File

@ -117,6 +117,7 @@ export default [
"web",
"fluent-bundle",
"fluent-dom",
"postcss-values-parser",
// See https://github.com/firebase/firebase-admin-node/discussions/1359.
"eslint-plugin-perfectionist",
],

View File

@ -13,8 +13,6 @@
* limitations under the License.
*/
// TODO: Remove the exception below once someone figures out how to fix it.
// eslint-disable-next-line import/no-unresolved
import { parse, registerWalkers, Root } from "postcss-values-parser";
import { isString } from "stylelint/lib/utils/validateTypes.mjs";
import stylelint from "stylelint";

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