(nextCall)
| 7 | } |
| 8 | |
| 9 | updateChain(nextCall) { |
| 10 | if (!this.promise) { |
| 11 | this.promise = Promise.resolve() |
| 12 | } |
| 13 | this.promise = this.promise.then(nextCall) |
| 14 | this.then = (...args) => this.promise.then(...args) |
| 15 | this.catch = (...args) => this.promise.catch(...args) |
| 16 | return this |
| 17 | } |
| 18 | |
| 19 | elementByCss(sel) { |
| 20 | return this.updateChain(() => |
no outgoing calls
no test coverage detected