diff options
author | Natalia Tepluhina <tarya.se@gmail.com> | 2019-03-13 14:59:15 +0200 |
---|---|---|
committer | Natalia Tepluhina <tarya.se@gmail.com> | 2019-03-13 14:59:15 +0200 |
commit | a88a8a08c2a8f675f6bb0032410198df03b50096 (patch) | |
tree | ae9c45442251c9e92a3e478ecca6aaeddb25ba0b /spec | |
parent | c89742b1be27d09773a1ea98a7da3079ba321ca7 (diff) | |
download | gitlab-ce-a88a8a08c2a8f675f6bb0032410198df03b50096.tar.gz |
Fixed pdf tests
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)) |