(spec)
| 51 | return this |
| 52 | }, |
| 53 | mixin(spec) { |
| 54 | Object.keys(spec).forEach(key => { |
| 55 | this[key] = (...args) => { |
| 56 | spec[key].call(this, ...args) |
| 57 | return this |
| 58 | } |
| 59 | }) |
| 60 | return this |
| 61 | }, |
| 62 | test(callback) { |
| 63 | const param = {...this, ...this.elements} |
| 64 | callback.call(param, param) |
nothing calls this directly
no outgoing calls
no test coverage detected