UNPKG

591 BTypeScriptView Raw
1/**
2 * Waits for the expectation to pass and returns a Promise
3 *
4 * @param expectation Function Expectation that has to complete without throwing
5 * @param timeout Number Maximum wait interval, 4500ms by default
6 * @param interval Number Wait-between-retries interval, 50ms by default
7 * @return Promise Promise to return a callback result
8 */
9declare const waitForExpect: {
10 (expectation: () => void | Promise<void>, timeout?: number, interval?: number): Promise<{}>;
11 defaults: {
12 timeout: number;
13 interval: number;
14 };
15};
16export default waitForExpect;