#892838 RFP: libjs-wait-until-promise -- test utility to simplify waiting for a condition

Package:
wnpp
Source:
wnpp
Submitter:
"W. Martin Borgert"
Date:
2025-11-29 16:29:48 UTC
Severity:
wishlist
#892838#5
Date:
2018-03-13 14:25:43 UTC
From:
To:
* Package name    : libjs-wait-until-promise
   Version         : 1.0.0
   Upstream Author : Simen Bekkhus <sbekkhus91@gmail.com>
* URL             : https://github.com/SimenB/wait-until-promise
* License         : MIT
   Programming Lang: JavaScript
   Description     : test utility to simplify waiting for a condition

Usage

To use it, import the module, and pass it a function. A promise is
returned, and it is resolved after the passed function returns a
truthy value. If the function passed never returns a truthy value,
or it times out, the promise is rejected.

Dependency for converse.js (#807275).