Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit fd9cf64

Browse files
committed
build: fix compile error
1 parent 378ea67 commit fd9cf64

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/overlay_position.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ import { calculateOverlayPosition, CSSOffsets } from './overlay_position'
33

44
describe('overlay_position', () => {
55
describe('calculateOverlayPosition()', () => {
6+
/** Positions an element at the given px offsets */
7+
const applyOffsets = (element: HTMLElement, { left, top }: CSSOffsets): void => {
8+
element.style.left = left + 'px'
9+
element.style.top = top + 'px'
10+
}
11+
612
let relativeElement: HTMLElement
713
let hoverOverlayElement: HTMLElement
814

@@ -16,12 +22,6 @@ describe('overlay_position', () => {
1622
return target
1723
}
1824

19-
/** Positions an element at the given px offsets */
20-
const applyOffsets = (element: HTMLElement, { left, top }: CSSOffsets): void => {
21-
element.style.left = left + 'px'
22-
element.style.top = top + 'px'
23-
}
24-
2525
beforeEach(() => {
2626
const style = document.createElement('style')
2727
style.innerHTML = `

0 commit comments

Comments
 (0)