diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-16 21:08:34 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-16 21:08:34 +0300 |
commit | cc9ff71e31ecc954f819741ba1285b1b9adbf3b9 (patch) | |
tree | 5f1ff13cc95f2b1860419c45b8def31cde56d1f9 /spec/frontend/syntax_highlight_spec.js | |
parent | f01d3c8c095e70981ffc1d20c050c153f3766421 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/syntax_highlight_spec.js')
-rw-r--r-- | spec/frontend/syntax_highlight_spec.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/frontend/syntax_highlight_spec.js b/spec/frontend/syntax_highlight_spec.js index 1be6c213350..a573c37ca44 100644 --- a/spec/frontend/syntax_highlight_spec.js +++ b/spec/frontend/syntax_highlight_spec.js @@ -1,14 +1,10 @@ -/* eslint-disable no-return-assign */ import $ from 'jquery'; import { setHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; import syntaxHighlight from '~/syntax_highlight'; describe('Syntax Highlighter', () => { const stubUserColorScheme = (value) => { - if (window.gon == null) { - window.gon = {}; - } - return (window.gon.user_color_scheme = value); + window.gon.user_color_scheme = value; }; // We have to bind `document.querySelectorAll` to `document` to not mess up the fn's context |