Pass window in to fix tests

This commit is contained in:
Daniel Imms
2022-05-23 07:23:15 -07:00
parent 8b53b8c255
commit ca083f257c
4 changed files with 19 additions and 10 deletions
+1
View File
@@ -17,6 +17,7 @@ export class MouseService implements IMouseService {
public getCoords(event: {clientX: number, clientY: number}, element: HTMLElement, colCount: number, rowCount: number, isSelection?: boolean): [number, number] | undefined {
return getCoords(
window,
event,
element,
colCount,