(commands)
| 215 | } |
| 216 | |
| 217 | send(commands) { |
| 218 | if (Array.isArray(commands)) { |
| 219 | // Multiple commands means the response does not matter. There might even |
| 220 | // never be a response. |
| 221 | return Promise |
| 222 | .all(commands.map((command) => this._sendMessage(command))) |
| 223 | .then(() => {}); |
| 224 | } |
| 225 | return this._sendMessage(commands); |
| 226 | } |
| 227 | |
| 228 | waitForNotification(methodOrPredicate, description) { |
| 229 | const desc = description || methodOrPredicate; |
no test coverage detected