Merge pull request #14667 from Snuffleupagus/fieldObjects-test-Node

Enable the "gets fieldObjects" unit-test in Node.js (PR 14409 follow-up)
This commit is contained in:
Tim van der Meij 2022-03-13 20:39:01 +01:00 committed by GitHub
commit f410403c4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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