Skip to content

Commit

Permalink
Fixed failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
holwech committed Sep 2, 2020
1 parent a2175e3 commit ffd479a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/Dispatcher.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function createMouseEvent(type: EventType): IEvent {
time: 1,
id: 1,
state: true,
e: { target: { id: 1 } } as any as MouseEvent
e: { target: { id: 1 } } as any as PointerEvent
}
}

Expand Down Expand Up @@ -48,6 +48,6 @@ beforeEach(() => {
describe('Drawify core functionality', () => {
it('should handle pointer down event', () => {
const pointerDownEvent: IEvent = createMouseEvent(EventType.POINTER_DOWN);
dispatcher.dispatchEvent(pointerDownEvent, EventOrigin.USER);
dispatcher.dispatchEvent(pointerDownEvent);
});
});

0 comments on commit ffd479a

Please sign in to comment.