@open-wc/testing-helpers
Advanced tools
Comparing version 2.0.4 to 2.0.5
# Change Log | ||
## 2.0.5 | ||
### Patch Changes | ||
- 065b82a8: Add generics for oneEvent test helper function | ||
## 2.0.4 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@open-wc/testing-helpers", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -121,5 +121,6 @@ let defineCECounter = 0; | ||
* | ||
* @param {EventTarget} eventTarget Target of the event, usually an Element | ||
* @param {string} eventName Name of the event | ||
* @returns {Promise<CustomEvent>} Promise to await until the event has been fired | ||
* @param eventTarget Target of the event, usually an Element | ||
* @param eventName Name of the event | ||
* @returns Promise to await until the event has been fired | ||
* @type {import("./types").OneEventFn} | ||
*/ | ||
@@ -126,0 +127,0 @@ export function oneEvent(eventTarget, eventName) { |
export { elementUpdated } from "./src/elementUpdated.js"; | ||
/** @deprecated please do import { html } from 'lit/static-html.js'; */ | ||
declare const deprecatedHtml: (strings: TemplateStringsArray, ...values: unknown[]) => import("lit-html").TemplateResult<1 | 2>; | ||
declare const deprecatedHtml: (strings: TemplateStringsArray, ...values: unknown[]) => import("lit").TemplateResult<1 | 2>; | ||
/** @deprecated please do import { unsafeStatic } from 'lit/static-html.js'; */ | ||
@@ -5,0 +5,0 @@ declare const deprecatedUnsafeStatic: (value: string) => { |
export { elementUpdated } from "./src/elementUpdated.js"; | ||
import { html } from "lit-html/static"; | ||
import { unsafeStatic } from "lit-html/static"; | ||
import { html } from "lit/node_modules/lit-html/static"; | ||
import { unsafeStatic } from "lit/node_modules/lit-html/static"; | ||
export { html, unsafeStatic }; | ||
@@ -5,0 +5,0 @@ export { fixture, fixtureSync } from "./src/fixture.js"; |
@@ -78,7 +78,8 @@ /** | ||
* | ||
* @param {EventTarget} eventTarget Target of the event, usually an Element | ||
* @param {string} eventName Name of the event | ||
* @returns {Promise<CustomEvent>} Promise to await until the event has been fired | ||
* @param eventTarget Target of the event, usually an Element | ||
* @param eventName Name of the event | ||
* @returns Promise to await until the event has been fired | ||
* @type {import("./types").OneEventFn} | ||
*/ | ||
export function oneEvent(eventTarget: EventTarget, eventName: string): Promise<CustomEvent>; | ||
export function oneEvent(eventTarget: EventTarget, eventName: string): Promise<any>; | ||
/** | ||
@@ -85,0 +86,0 @@ * Waits until the given predicate returns a truthy value. Calls and awaits the predicate |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116362
42
860