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
949bf033
Commit
949bf033
authored
Dec 14, 2021
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed jest spec + formatting on navigation_utility
parent
b0dd7933
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
app/assets/javascripts/lib/utils/navigation_utility.js
app/assets/javascripts/lib/utils/navigation_utility.js
+1
-1
spec/frontend/lib/utils/navigation_utility_spec.js
spec/frontend/lib/utils/navigation_utility_spec.js
+0
-1
No files found.
app/assets/javascripts/lib/utils/navigation_utility.js
View file @
949bf033
...
...
@@ -34,7 +34,7 @@ export function initPrefetchLinks(selector) {
};
const
mouseOverHandler
=
()
=>
{
el
.
addEventListener
(
'
mouseout
'
,
mouseOutHandler
,
{
once
:
true
,
passive
:
true
});
el
.
addEventListener
(
'
mouseout
'
,
mouseOutHandler
,
{
once
:
true
,
passive
:
true
});
mouseOverTimer
=
setTimeout
(()
=>
{
if
(
el
.
href
)
prefetchDocument
(
el
.
href
);
...
...
spec/frontend/lib/utils/navigation_utility_spec.js
View file @
949bf033
...
...
@@ -107,7 +107,6 @@ describe('initPrefetchLinks', () => {
expect
.
any
(
Function
),
true
,
);
expect
(
newLink
.
removeEventListener
).
toHaveBeenCalledWith
(
'
mouseout
'
,
expect
.
any
(
Function
));
});
});
});
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