summaryrefslogtreecommitdiff
path: root/spec/javascripts
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-04-25 11:48:54 +0200
committerWinnie Hellmann <winnie@gitlab.com>2019-05-02 23:11:18 +0200
commit6e3165f0b4bcbb12d88b653df7f6b66349b7b375 (patch)
treefc77c8f9f88cd8c238993d0d56b53900dc0ddd2a /spec/javascripts
parent1542904541494fdb4ffec29c5ca83c0eac9b8c97 (diff)
downloadgitlab-ce-6e3165f0b4bcbb12d88b653df7f6b66349b7b375.tar.gz
Load EE fixtures from ee/ directory in Karma
(cherry picked from commit 7cde57bf7367bce130a2e7f149c8dafd362de3f8)
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/test_constants.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/javascripts/test_constants.js b/spec/javascripts/test_constants.js
index 24b5512b053..77c206585fe 100644
--- a/spec/javascripts/test_constants.js
+++ b/spec/javascripts/test_constants.js
@@ -1,4 +1,6 @@
-export const FIXTURES_PATH = '/base/spec/javascripts/fixtures';
+export const FIXTURES_PATH = `/base/${
+ process.env.IS_GITLAB_EE ? 'ee/' : ''
+}spec/javascripts/fixtures`;
export const TEST_HOST = 'http://test.host';
export const DUMMY_IMAGE_URL = `${FIXTURES_PATH}/static/images/one_white_pixel.png`;