mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-03 12:57:20 +02: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",
|
"web",
|
||||||
"fluent-bundle",
|
"fluent-bundle",
|
||||||
"fluent-dom",
|
"fluent-dom",
|
||||||
|
"postcss-values-parser",
|
||||||
// See https://github.com/firebase/firebase-admin-node/discussions/1359.
|
// See https://github.com/firebase/firebase-admin-node/discussions/1359.
|
||||||
"eslint-plugin-perfectionist",
|
"eslint-plugin-perfectionist",
|
||||||
],
|
],
|
||||||
|
|||||||
@ -13,8 +13,6 @@
|
|||||||
* limitations under the License.
|
* 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 { parse, registerWalkers, Root } from "postcss-values-parser";
|
||||||
import { isString } from "stylelint/lib/utils/validateTypes.mjs";
|
import { isString } from "stylelint/lib/utils/validateTypes.mjs";
|
||||||
import stylelint from "stylelint";
|
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 () {
|
describe("createValidAbsoluteUrl", function () {
|
||||||
it("handles invalid URLs", function () {
|
it("handles invalid URLs", function () {
|
||||||
expect(createValidAbsoluteUrl(undefined, undefined)).toEqual(null);
|
expect(createValidAbsoluteUrl(undefined, undefined)).toEqual(null);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user