UNPKG

mancha

Version:

Javscript HTML rendering engine

21 lines (20 loc) 1.23 kB
/** Time to sleep for reactive side effects to complete (1.1x debounce time). */ export declare const REACTIVE_SLEEP_MS: number; /** Sleep for the reactive debounce period to allow side effects to complete. */ export declare function sleepForReactivity(): Promise<void>; export declare function innerHTML(elem: Element): string; export declare function setInnerHTML(elem: Element, html: string): void; export declare function getTextContent(node: Element | unknown): string | null; export declare const isNode: boolean; export declare function setupGlobalTestEnvironment(): Promise<void>; export declare function createFragment(html: string): DocumentFragment; export declare const assert: { equal: (actual: unknown, expected: unknown, message?: string) => void; deepEqual: (actual: unknown, expected: unknown, message?: string) => void; notEqual: (actual: unknown, expected: unknown, message?: string) => void; greaterEqual: (actual: unknown, expected: unknown, message?: string) => void; ok: (value: unknown, message?: string) => void; fail: (message?: string) => never; throws: (fn: () => void, message?: string) => void; rejects: (p: Promise<unknown>, message?: string) => Promise<void>; };