From fb345ee184268a5b8dae971e4ce6de8f965640a5 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 12 Mar 2022 23:24:37 +0100 Subject: [PATCH] Enable the "gets fieldObjects" unit-test in Node.js (PR 14409 follow-up) Apparently this unit-test works in Node.js now, hence it's *possible* that the reason it didn't work previously is that there were bugs in our old `structuredClone` polyfill. --- test/unit/api_spec.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/unit/api_spec.js b/test/unit/api_spec.js index 162621918..eca1b0c25 100644 --- a/test/unit/api_spec.js +++ b/test/unit/api_spec.js @@ -1296,12 +1296,6 @@ describe("api", function () { }); it("gets fieldObjects", async function () { - if (isNodeJS) { - pending( - "Node.js appears to ignore Object properties that are explicitly " + - "set to `undefined`, thus breaking the expectations used below." - ); - } const loadingTask = getDocument(buildGetDocumentParams("js-authors.pdf")); const pdfDoc = await loadingTask.promise; const fieldObjects = await pdfDoc.getFieldObjects();