Skip to content

Commit

Permalink
test(#88): add test for encrypted pdfs in browser version (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
mojoaxel committed Dec 25, 2023
1 parent 7a6a80e commit fa07f93
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/browser-fixtures.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,18 @@ describe('PDFMerger', () => {
})
})

describe('test for specific issues', () => {
test('merge a encrypted pdf (#88)', async () => {
const merger = new PDFMerger()

const fileIssue88 = await readFixtureAsUint8Array('issue-88.pdf')
await merger.add(fileIssue88)

await merger.saveAsBuffer()
})
})

afterAll(async () => {
await fs.remove(TMP_DIR)
// await new Promise(resolve => setTimeout(resolve, 10000))
})
})

0 comments on commit fa07f93

Please sign in to comment.