Commit 55969fe8 authored by Lee Tickett's avatar Lee Tickett Committed by Martin Wortschack

Remove var from syntax_highlight_spec.js

parent 2294e860
---
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