diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-14 21:06:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-14 21:06:15 +0300 |
commit | 921d16124a626ad94e14bacb734033b0293ba431 (patch) | |
tree | 11be086bbc2b27701c3f8d885dd552af85b100c4 /spec/javascripts/syntax_highlight_spec.js | |
parent | d88843f370acfcbbd3e2b9d6d662d62132647d86 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/javascripts/syntax_highlight_spec.js')
-rw-r--r-- | spec/javascripts/syntax_highlight_spec.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/javascripts/syntax_highlight_spec.js b/spec/javascripts/syntax_highlight_spec.js index 5438368ccbe..99c47fa31d4 100644 --- a/spec/javascripts/syntax_highlight_spec.js +++ b/spec/javascripts/syntax_highlight_spec.js @@ -1,11 +1,10 @@ -/* eslint-disable no-var, no-return-assign */ +/* eslint-disable no-return-assign */ import $ from 'jquery'; import syntaxHighlight from '~/syntax_highlight'; describe('Syntax Highlighter', function() { - var stubUserColorScheme; - stubUserColorScheme = function(value) { + const stubUserColorScheme = function(value) { if (window.gon == null) { window.gon = {}; } @@ -40,9 +39,8 @@ describe('Syntax Highlighter', function() { }); it('prevents an infinite loop when no matches exist', function() { - var highlight; setFixtures('<div></div>'); - highlight = function() { + const highlight = function() { return syntaxHighlight($('div')); }; |