* Adds a predicate function to be run against candidate harnesses. * @param description A description of this predicate that may be used in error messages. * @param predicate An async predicate function. * @return this (for method chaining).
(description: string, predicate: AsyncPredicate<T>)
| 650 | * @return this (for method chaining). |
| 651 | */ |
| 652 | add(description: string, predicate: AsyncPredicate<T>) { |
| 653 | this._descriptions.push(description); |
| 654 | this._predicates.push(predicate); |
| 655 | return this; |
| 656 | } |
| 657 | |
| 658 | /** |
| 659 | * Adds a predicate function that depends on an option value to be run against candidate |