1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

[api-minor] Reduce duplication in the "gets non-existent page" unit-test

This commit is contained in:
Jonas Jenwald 2022-02-24 11:20:27 +01:00
parent 2bb96a708c
commit 2be8036eb7
2 changed files with 16 additions and 33 deletions

View file

@ -2848,7 +2848,7 @@ class WorkerTransport {
pageNumber <= 0 ||
pageNumber > this._numPages
) {
return Promise.reject(new Error("Invalid page request"));
return Promise.reject(new Error("Invalid page request."));
}
const pageIndex = pageNumber - 1,