diff options
Diffstat (limited to 'spec/frontend/__helpers__/experimentation_helper.js')
-rw-r--r-- | spec/frontend/__helpers__/experimentation_helper.js | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/spec/frontend/__helpers__/experimentation_helper.js b/spec/frontend/__helpers__/experimentation_helper.js index d5044be88d7..7e8dd463d28 100644 --- a/spec/frontend/__helpers__/experimentation_helper.js +++ b/spec/frontend/__helpers__/experimentation_helper.js @@ -2,16 +2,9 @@ import { merge } from 'lodash'; // This helper is for specs that use `gitlab/experimentation` module export function withGonExperiment(experimentKey, value = true) { - let origGon; - beforeEach(() => { - origGon = window.gon; window.gon = merge({}, window.gon || {}, { experiments: { [experimentKey]: value } }); }); - - afterEach(() => { - window.gon = origGon; - }); } // The following helper is for specs that use `gitlab-experiment` utilities, |