Skip to content

Commit

Permalink
fix(tests): remove deprecated Init event (closes #5005) (#5182)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludmilanesvitiy authored and Domainv committed Apr 25, 2019
1 parent 85faa47 commit 3f87b84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { dispatchMouseEvent } from '@netbasal/spectator';

export function fireEvent(target, action) {
const event = document.createEvent('Event');
event.initEvent(action, false, true);
target.dispatchEvent(event);
dispatchMouseEvent(target, action);
}

0 comments on commit 3f87b84

Please sign in to comment.