diff options
Diffstat (limited to 'spec/javascripts/pdf/page_spec.js')
-rw-r--r-- | spec/javascripts/pdf/page_spec.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/javascripts/pdf/page_spec.js b/spec/javascripts/pdf/page_spec.js index bb2294e8d18..cc2cc204ee3 100644 --- a/spec/javascripts/pdf/page_spec.js +++ b/spec/javascripts/pdf/page_spec.js @@ -1,6 +1,5 @@ import Vue from 'vue'; -import pdfjsLib from 'pdfjs-dist/build/pdf'; -import workerSrc from 'pdfjs-dist/build/pdf.worker.min'; +import pdfjsLib from 'pdfjs-dist/webpack'; import mountComponent from 'spec/helpers/vue_mount_component_helper'; import { FIXTURES_PATH } from 'spec/test_constants'; @@ -14,7 +13,6 @@ describe('Page component', () => { let testPage; beforeEach(done => { - pdfjsLib.GlobalWorkerOptions.workerSrc = workerSrc; pdfjsLib .getDocument(testPDF) .promise.then(pdf => pdf.getPage(1)) |