angular-cn/packages/bazel/test/ng_package/example-with-ts-library/utils/testing.ts

12 lines
294 B
TypeScript

/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export function dispatchFakeEvent(el: HTMLElement, ev: Event) {
el.dispatchEvent(ev);
}