mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-02-08 00:21:11 +01:00
Merge pull request #20605 from Snuffleupagus/rm-util-global-tests
Remove unit-tests for global `ReadableStream` and `URL`
This commit is contained in:
commit
d4fbae06d9
@ -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",
|
||||
],
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user