diff options
Diffstat (limited to 'spec/frontend/environment.js')
-rw-r--r-- | spec/frontend/environment.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/frontend/environment.js b/spec/frontend/environment.js index 82e3b50aeb8..7b160c48501 100644 --- a/spec/frontend/environment.js +++ b/spec/frontend/environment.js @@ -8,6 +8,7 @@ const { setGlobalDateToRealDate, } = require('./__helpers__/fake_date/fake_date'); const { TEST_HOST } = require('./__helpers__/test_constants'); +const { createGon } = require('./__helpers__/gon_helper'); const ROOT_PATH = path.resolve(__dirname, '../..'); @@ -40,11 +41,12 @@ class CustomEnvironment extends TestEnvironment { }); const { IS_EE } = projectConfig.testEnvironmentOptions; - this.global.gon = { - ee: IS_EE, - }; + this.global.IS_EE = IS_EE; + // Set up global `gon` object + this.global.gon = createGon(IS_EE); + // Set up global `gl` object this.global.gl = {}; |