Commit 949bf033 authored by Tim Zallmann's avatar Tim Zallmann

Fixed jest spec + formatting on navigation_utility

parent b0dd7933
......@@ -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);
......
......@@ -107,7 +107,6 @@ describe('initPrefetchLinks', () => {
expect.any(Function),
true,
);
expect(newLink.removeEventListener).toHaveBeenCalledWith('mouseout', expect.any(Function));
});
});
});
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