diff options
author | Natalia Tepluhina <tarya.se@gmail.com> | 2019-03-20 15:12:42 +0300 |
---|---|---|
committer | Natalia Tepluhina <tarya.se@gmail.com> | 2019-03-20 15:29:18 +0300 |
commit | 23b622005b65b32551a404548e7da8d59553db0b (patch) | |
tree | d341c534dca3aaa82c90017dc1acfc122762e47e /spec | |
parent | 2eaeda28ddebeb01f13dcda394c5eaeff7662f9f (diff) |
Updated PDF.js to 2.0.943
fix: changed PDFJS prop to GlobalWorkerOptions
Fixed pdf tests
Added changelog entry
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/pdf/index_spec.js | 4 | ||||
-rw-r--r-- | spec/javascripts/pdf/page_spec.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/javascripts/pdf/index_spec.js b/spec/javascripts/pdf/index_spec.js index 699cf4871aa..6df4ded92f0 100644 --- a/spec/javascripts/pdf/index_spec.js +++ b/spec/javascripts/pdf/index_spec.js @@ -1,11 +1,11 @@ import Vue from 'vue'; -import { PDFJS } from 'vendor/pdf'; +import { GlobalWorkerOptions } from 'vendor/pdf'; import workerSrc from 'vendor/pdf.worker.min'; import PDFLab from '~/pdf/index.vue'; import pdf from '../fixtures/blob/pdf/test.pdf'; -PDFJS.workerSrc = workerSrc; +GlobalWorkerOptions.workerSrc = workerSrc; const Component = Vue.extend(PDFLab); describe('PDF component', () => { diff --git a/spec/javascripts/pdf/page_spec.js b/spec/javascripts/pdf/page_spec.js index ef967210b65..b2e9fa42a63 100644 --- a/spec/javascripts/pdf/page_spec.js +++ b/spec/javascripts/pdf/page_spec.js @@ -12,7 +12,7 @@ describe('Page component', () => { let testPage; beforeEach(done => { - pdfjsLib.PDFJS.workerSrc = workerSrc; + pdfjsLib.GlobalWorkerOptions.workerSrc = workerSrc; pdfjsLib .getDocument(testPDF) .then(pdf => pdf.getPage(1)) |