Skip to content

Commit f482232

Browse files
Merge pull request #19790 from Snuffleupagus/test-getAnnotationStorage-rm-entries
Simplify the `getAnnotationStorage` integration-test helper function
2 parents 9c6e2e6 + 60bf9b1 commit f482232

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/integration/test_utils.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ async function getFirstSerialized(page, filter = undefined) {
466466
function getAnnotationStorage(page) {
467467
return page.evaluate(() =>
468468
Object.fromEntries(
469-
window.PDFViewerApplication.pdfDocument.annotationStorage.serializable.map?.entries() ||
470-
[]
469+
window.PDFViewerApplication.pdfDocument.annotationStorage.serializable
470+
.map || []
471471
)
472472
);
473473
}

0 commit comments

Comments
 (0)