Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
typeEvent(eventName: string, cls = 'input'): this {
const node = document.querySelector(cls) as HTMLInputElement;
if (node == null) {
expect(true).toBe(false, `won't found '${cls}' class element`);
return this;
}
dispatchFakeEvent(node, eventName);
return this.time().dc();
}