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

Merge pull request #13882 from Snuffleupagus/PDFWorker-rm-closure

[api-minor] Remove the closure from the `PDFWorker` class, in the `src/display/api.js` file
This commit is contained in:
Tim van der Meij 2021-08-07 19:52:39 +02:00 committed by GitHub
commit 036b81496e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 317 additions and 310 deletions

View file

@ -501,7 +501,7 @@ describe("api", function () {
pending("Worker is not supported in Node.js.");
}
const workerSrc = PDFWorker.getWorkerSrc();
const workerSrc = PDFWorker.workerSrc;
expect(typeof workerSrc).toEqual("string");
expect(workerSrc).toEqual(GlobalWorkerOptions.workerSrc);
});