summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNatalia Tepluhina <tarya.se@gmail.com>2019-03-13 14:59:15 +0200
committerNatalia Tepluhina <tarya.se@gmail.com>2019-03-13 14:59:15 +0200
commita88a8a08c2a8f675f6bb0032410198df03b50096 (patch)
treeae9c45442251c9e92a3e478ecca6aaeddb25ba0b /spec
parentc89742b1be27d09773a1ea98a7da3079ba321ca7 (diff)
downloadgitlab-ce-a88a8a08c2a8f675f6bb0032410198df03b50096.tar.gz
Fixed pdf tests
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/pdf/index_spec.js4
-rw-r--r--spec/javascripts/pdf/page_spec.js2
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))