diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-04-25 15:22:00 +0300 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2019-04-30 13:40:45 +0300 |
commit | d89b19476d80612e97a2853249fabc63a5ff3f42 (patch) | |
tree | 371d542a958e5f09330b2517691a0f6ddf5feaed /spec/javascripts/pdf | |
parent | 96ad838433829e5432595ace85993f141cf4291a (diff) |
Use FIXTURES_PATH for loading test.pdf
Diffstat (limited to 'spec/javascripts/pdf')
-rw-r--r-- | spec/javascripts/pdf/index_spec.js | 4 | ||||
-rw-r--r-- | spec/javascripts/pdf/page_spec.js | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/spec/javascripts/pdf/index_spec.js b/spec/javascripts/pdf/index_spec.js index 6df4ded92f0..7191b65b4cd 100644 --- a/spec/javascripts/pdf/index_spec.js +++ b/spec/javascripts/pdf/index_spec.js @@ -3,7 +3,9 @@ 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'; +import { FIXTURES_PATH } from 'spec/test_constants'; + +const pdf = `${FIXTURES_PATH}/blob/pdf/test.pdf`; GlobalWorkerOptions.workerSrc = workerSrc; const Component = Vue.extend(PDFLab); diff --git a/spec/javascripts/pdf/page_spec.js b/spec/javascripts/pdf/page_spec.js index b2e9fa42a63..f899b5b3a0d 100644 --- a/spec/javascripts/pdf/page_spec.js +++ b/spec/javascripts/pdf/page_spec.js @@ -4,7 +4,9 @@ import workerSrc from 'vendor/pdf.worker.min'; import PageComponent from '~/pdf/page/index.vue'; import mountComponent from 'spec/helpers/vue_mount_component_helper'; -import testPDF from 'spec/fixtures/blob/pdf/test.pdf'; +import { FIXTURES_PATH } from 'spec/test_constants'; + +const testPDF = `${FIXTURES_PATH}/blob/pdf/test.pdf`; describe('Page component', () => { const Component = Vue.extend(PageComponent); |