Exposes utility methods to help execution of async tests.
- Source:
Methods
(static) wait(delay) → {Promise}
- Source:
Returns a promise that will be resolved after a specific delay. Useful
when relying on timing to ensure that tests are evaluated correctly, or
to yield to the javascript runtime.
Parameters:
Name | Type | Description |
---|---|---|
delay |
Number | The delay (in milliseconds) after which the promise will be resolved. |
Returns:
A promise that will be resolved once the delay
expires.
- Type
- Promise