diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2019-03-04 08:20:37 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-03-04 08:20:37 +0000 |
commit | ec7835946a0c981e9b263d2840e68f16eb1b3789 (patch) | |
tree | f02fd29d0367b55a2eb5f701015d73c28a63413e /spec/javascripts/test_bundle.js | |
parent | 615c14b28990489d99371b7ffdb57fe54d463e64 (diff) | |
download | gitlab-ce-ec7835946a0c981e9b263d2840e68f16eb1b3789.tar.gz |
Creates a function to check if repo is EE
Adds EE information to gon
Creates a global vue mixin
Diffstat (limited to 'spec/javascripts/test_bundle.js')
-rw-r--r-- | spec/javascripts/test_bundle.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/javascripts/test_bundle.js b/spec/javascripts/test_bundle.js index b2b0a50911d..5eef5682bbd 100644 --- a/spec/javascripts/test_bundle.js +++ b/spec/javascripts/test_bundle.js @@ -8,6 +8,7 @@ import '~/commons'; import Vue from 'vue'; import VueResource from 'vue-resource'; import Translate from '~/vue_shared/translate'; +import CheckEE from '~/vue_shared/mixins/is_ee'; import jasmineDiff from 'jasmine-diff'; import { getDefaultAdapter } from '~/lib/utils/axios_utils'; @@ -43,6 +44,7 @@ Vue.config.errorHandler = function(err) { Vue.use(VueResource); Vue.use(Translate); +Vue.use(CheckEE); // enable test fixtures jasmine.getFixtures().fixturesPath = FIXTURES_PATH; @@ -67,6 +69,7 @@ window.gl = window.gl || {}; window.gl.TEST_HOST = TEST_HOST; window.gon = window.gon || {}; window.gon.test_env = true; +window.gon.ee = false; gon.relative_url_root = ''; let hasUnhandledPromiseRejections = false; |