Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
55969fe8
Commit
55969fe8
authored
Nov 14, 2019
by
Lee Tickett
Committed by
Martin Wortschack
Nov 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove var from syntax_highlight_spec.js
parent
2294e860
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
changelogs/unreleased/remove_var_from_syntax_highlight_spec_js.yml
...s/unreleased/remove_var_from_syntax_highlight_spec_js.yml
+5
-0
spec/javascripts/syntax_highlight_spec.js
spec/javascripts/syntax_highlight_spec.js
+3
-5
No files found.
changelogs/unreleased/remove_var_from_syntax_highlight_spec_js.yml
0 → 100644
View file @
55969fe8
---
title
:
Remove var from syntax_highlight_spec.js
merge_request
:
20086
author
:
Lee Tickett
type
:
other
spec/javascripts/syntax_highlight_spec.js
View file @
55969fe8
/* eslint-disable no-
var, no-
return-assign */
/* eslint-disable no-return-assign */
import
$
from
'
jquery
'
;
import
$
from
'
jquery
'
;
import
syntaxHighlight
from
'
~/syntax_highlight
'
;
import
syntaxHighlight
from
'
~/syntax_highlight
'
;
describe
(
'
Syntax Highlighter
'
,
function
()
{
describe
(
'
Syntax Highlighter
'
,
function
()
{
var
stubUserColorScheme
;
const
stubUserColorScheme
=
function
(
value
)
{
stubUserColorScheme
=
function
(
value
)
{
if
(
window
.
gon
==
null
)
{
if
(
window
.
gon
==
null
)
{
window
.
gon
=
{};
window
.
gon
=
{};
}
}
...
@@ -40,9 +39,8 @@ describe('Syntax Highlighter', function() {
...
@@ -40,9 +39,8 @@ describe('Syntax Highlighter', function() {
});
});
it
(
'
prevents an infinite loop when no matches exist
'
,
function
()
{
it
(
'
prevents an infinite loop when no matches exist
'
,
function
()
{
var
highlight
;
setFixtures
(
'
<div></div>
'
);
setFixtures
(
'
<div></div>
'
);
highlight
=
function
()
{
const
highlight
=
function
()
{
return
syntaxHighlight
(
$
(
'
div
'
));
return
syntaxHighlight
(
$
(
'
div
'
));
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment