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:
commit
036b81496e
3 changed files with 317 additions and 310 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue