(methodOrPredicate, description)
| 226 | } |
| 227 | |
| 228 | waitForNotification(methodOrPredicate, description) { |
| 229 | const desc = description || methodOrPredicate; |
| 230 | const message = `Timed out waiting for matching notification (${desc})`; |
| 231 | return fires( |
| 232 | this._asyncWaitForNotification(methodOrPredicate), message, TIMEOUT); |
| 233 | } |
| 234 | |
| 235 | async _asyncWaitForNotification(methodOrPredicate) { |
| 236 | function matchMethod(notification) { |