summaryrefslogtreecommitdiff
path: root/spec/frontend/helpers/experimentation_helper.js
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2021-01-20 13:34:23 -0600
committerRobert Speicher <rspeicher@gmail.com>2021-01-20 13:34:23 -0600
commit6438df3a1e0fb944485cebf07976160184697d72 (patch)
tree00b09bfd170e77ae9391b1a2f5a93ef6839f2597 /spec/frontend/helpers/experimentation_helper.js
parent42bcd54d971da7ef2854b896a7b34f4ef8601067 (diff)
downloadgitlab-ce-6438df3a1e0fb944485cebf07976160184697d72.tar.gz
Add latest changes from gitlab-org/gitlab@13-8-stable-eev13.8.0-rc42
Diffstat (limited to 'spec/frontend/helpers/experimentation_helper.js')
-rw-r--r--spec/frontend/helpers/experimentation_helper.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/frontend/helpers/experimentation_helper.js b/spec/frontend/helpers/experimentation_helper.js
deleted file mode 100644
index c08c25155e8..00000000000
--- a/spec/frontend/helpers/experimentation_helper.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import { merge } from 'lodash';
-
-export function withGonExperiment(experimentKey, value = true) {
- let origGon;
-
- beforeEach(() => {
- origGon = window.gon;
- window.gon = merge({}, window.gon || {}, { experiments: { [experimentKey]: value } });
- });
-
- afterEach(() => {
- window.gon = origGon;
- });
-}