Commit d58b99ed authored by Martin Wortschack's avatar Martin Wortschack

Merge branch 'remove_var_from_syntax_highlight_spec_js' into 'master'

Remove var from syntax_highlight_spec.js

See merge request gitlab-org/gitlab!20086
parents 2294e860 55969fe8
---
title: Remove var from syntax_highlight_spec.js
merge_request: 20086
author: Lee Tickett
type: other
/* 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'));
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment